summaryrefslogtreecommitdiffstats
path: root/SOURCES/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'SOURCES/test.c')
-rw-r--r--SOURCES/test.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/SOURCES/test.c b/SOURCES/test.c
new file mode 100644
index 0000000..ab7597e
--- /dev/null
+++ b/SOURCES/test.c
@@ -0,0 +1,19 @@
+#include<stdio.h>
+#include<sqlite3.h>
+
+int
+main(int argc, char **argv)
+{
+ int rc;
+ sqlite3 *db;
+
+ rc = sqlite3_open(argv[1], &db);
+ if( rc ){
+ printf("ERROR\n");
+ sqlite3_close(db);
+ return(1);
+ }
+ printf("%d\n", sqlite3_limit(db, SQLITE_LIMIT_COLUMN, -1));
+ sqlite3_close(db);
+ return 0;
+}