summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Luna2022-09-28 23:41:18 -0300
committerGravatar Vincent Rischmann2022-09-29 10:09:21 +0200
commit5b8b472276829f75dced4dc405b66b7b986498b3 (patch)
tree82462f5b8262a5eb40f9a08839522bbd204ac0a8
parentremove debug print (diff)
downloadzig-sqlite-5b8b472276829f75dced4dc405b66b7b986498b3.tar.gz
zig-sqlite-5b8b472276829f75dced4dc405b66b7b986498b3.tar.xz
zig-sqlite-5b8b472276829f75dced4dc405b66b7b986498b3.zip
drop comptime from execMulti query
not needed as we always prepare a dynamic statement
-rw-r--r--sqlite.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlite.zig b/sqlite.zig
index 1fe8aea..59a43c9 100644
--- a/sqlite.zig
+++ b/sqlite.zig
@@ -771,7 +771,7 @@ pub const Db = struct {
771 /// bindings to values, but have multiple commands inside. 771 /// bindings to values, but have multiple commands inside.
772 /// 772 ///
773 /// Exmaple: 'create table a(); create table b();' 773 /// Exmaple: 'create table a(); create table b();'
774 pub fn execMulti(self: *Self, comptime query: []const u8, options: QueryOptions) !void { 774 pub fn execMulti(self: *Self, query: []const u8, options: QueryOptions) !void {
775 var new_options = options; 775 var new_options = options;
776 var sql_tail_ptr: ?[*:0]const u8 = null; 776 var sql_tail_ptr: ?[*:0]const u8 = null;
777 new_options.sql_tail_ptr = &sql_tail_ptr; 777 new_options.sql_tail_ptr = &sql_tail_ptr;