Implement the experimental sqlite3_bind_parameter_count() API in support
of DBD::SQLite. Also fix the sqlite3.def export list. (CVS 1797)
FossilOrigin-Name: c44943e6fe0c88830102253591a501dc7d724d2f
diff --git a/src/vdbeapi.c b/src/vdbeapi.c
index e8e389c..ced6437 100644
--- a/src/vdbeapi.c
+++ b/src/vdbeapi.c
@@ -514,3 +514,13 @@
rc = sqlite3VdbeChangeEncoding(pVar, p->db->enc);
return rc;
}
+
+/*
+** Return the number of wildcards that can be potentially bound to.
+** This routine is added to support DBD::SQLite.
+**
+******** EXPERIMENTAL *******
+*/
+int sqlite3_bind_parameter_count(sqlite3_stmt *pStmt){
+ return ((Vdbe*)pStmt)->nVar;
+}