test/main.c

changeset 12
421555fa9ce4
parent 11
0aa8cbd7912e
child 14
59e62e65182c
--- a/test/main.c	Sat Jan 04 13:03:01 2025 +0100
+++ b/test/main.c	Sun Feb 16 09:30:18 2025 +0100
@@ -152,6 +152,11 @@
     }
     
     DBUConnection *conn = dbuSQLiteConnectionFromDB(db, true);
+    
+    // test dbuConnectionExec
+    int execResult = dbuConnectionExec(conn, "drop table if exists test_table;");
+    printf("exec result: %d\n\n", execResult);
+    
     DBUQuery *query = conn->createQuery(conn, NULL);
     dbuQuerySetSQL(query, "select p.*, a.address_id as [__address__address_id], a.street, a.zip, a.city from Person p inner join Address a on p.address_id = a.address_id;");
     

mercurial