diff options
| author | 2022-09-28 23:41:18 -0300 | |
|---|---|---|
| committer | 2022-09-29 10:09:21 +0200 | |
| commit | 5b8b472276829f75dced4dc405b66b7b986498b3 (patch) | |
| tree | 82462f5b8262a5eb40f9a08839522bbd204ac0a8 | |
| parent | remove debug print (diff) | |
| download | zig-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.zig | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -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; |