Skip to content

Commit cbc4447

Browse files
authored
Fix sql length from 1000 to -1
1 parent 8435103 commit cbc4447

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/sqlite3_stackoverflow_users/sqlite3_stackoverflow_users.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ void setup(void) {
199199
}
200200
int step_res;
201201
if (sql.length() > 0) {
202-
rc = sqlite3_prepare_v2(db1, sql.c_str(), 1000, &res, &tail);
202+
rc = sqlite3_prepare_v2(db1, sql.c_str(), -1, &res, &tail);
203203
if (rc != SQLITE_OK) {
204204
String resp = F("Failed to fetch data: ");
205205
resp += sqlite3_errmsg(db1);
@@ -251,7 +251,7 @@ void setup(void) {
251251
sql += server.arg("so_loc_count");
252252
}
253253
}
254-
rc = sqlite3_prepare_v2(db1, sql.c_str(), 1000, &res, &tail);
254+
rc = sqlite3_prepare_v2(db1, sql.c_str(), -1, &res, &tail);
255255
if (rc != SQLITE_OK) {
256256
String resp = F("Failed to fetch data: ");
257257
resp += sqlite3_errmsg(db1);

0 commit comments

Comments
 (0)