Skip to content

Commit 9f35709

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/sqlite3_webquery/sqlite3_webquery.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ void setup ( void ) {
167167
sql += "' and '";
168168
sql += server.arg("to");
169169
sql += "'";
170-
rc = sqlite3_prepare_v2(db1, sql.c_str(), 1000, &res, &tail);
170+
rc = sqlite3_prepare_v2(db1, sql.c_str(), -1, &res, &tail);
171171
if (rc != SQLITE_OK) {
172172
String resp = "Failed to fetch data: ";
173173
resp += sqlite3_errmsg(db1);
@@ -196,7 +196,7 @@ void setup ( void ) {
196196
sql += "' and '";
197197
sql += server.arg("to");
198198
sql += "'";
199-
rc = sqlite3_prepare_v2(db1, sql.c_str(), 1000, &res, &tail);
199+
rc = sqlite3_prepare_v2(db1, sql.c_str(), -1, &res, &tail);
200200
if (rc != SQLITE_OK) {
201201
String resp = "Failed to fetch data: ";
202202
resp += sqlite3_errmsg(db1);

0 commit comments

Comments
 (0)