From 944ee5a9fb6bcb487123f970d3cf63aae715ef11 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Thu, 5 Jul 2018 11:10:13 -0400 Subject: [PATCH] Update sqlite3 bindings with dst_*_view refactorings. --- natives/sqlite3/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/natives/sqlite3/main.c b/natives/sqlite3/main.c index 45360834..6fc9d20d 100644 --- a/natives/sqlite3/main.c +++ b/natives/sqlite3/main.c @@ -146,7 +146,7 @@ static const char *bindmany(sqlite3_stmt *stmt, Dst params) { const DstKV *kvs; int32_t len, cap; int limitindex = sqlite3_bind_parameter_count(stmt); - if (dst_seq_view(params, &seq, &len)) { + if (dst_indexed_view(params, &seq, &len)) { if (len > limitindex + 1) { return "invalid index in sql parameters"; } @@ -156,7 +156,7 @@ static const char *bindmany(sqlite3_stmt *stmt, Dst params) { return err; } } - } else if (dst_hashtable_view(params, &kvs, &len, &cap)) { + } else if (dst_dictionary_view(params, &kvs, &len, &cap)) { for (int i = 0; i < cap; i++) { int index = 0; switch (dst_type(kvs[i].key)) {