Skip to content

Commit caf273d

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/sqlite3_web_console/sqlite3_web_console.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ void setup ( void ) {
194194
//sql += "' and '";
195195
//sql += server.arg("to");
196196
//sql += "'";
197-
//rc = sqlite3_prepare_v2(db1, sql.c_str(), 1000, &res, &tail);
197+
//rc = sqlite3_prepare_v2(db1, sql.c_str(), -1, &res, &tail);
198198
//if (rc != SQLITE_OK) {
199199
// String resp = "Failed to fetch data: ";
200200
// resp += sqlite3_errmsg(db1);
@@ -218,7 +218,7 @@ void setup ( void ) {
218218
//}
219219
//sqlite3_finalize(res);
220220

221-
rc = sqlite3_prepare_v2(db1, sql.c_str(), 1000, &res, &tail);
221+
rc = sqlite3_prepare_v2(db1, sql.c_str(), -1, &res, &tail);
222222
if (rc != SQLITE_OK) {
223223
String resp = "Failed to fetch data: ";
224224
resp += sqlite3_errmsg(db1);

0 commit comments

Comments
 (0)