Skip to content

Commit b847aab

Browse files
committed
fixed p1 smart meter log (caused by new safe_query changes)
1 parent d2f91fa commit b847aab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/WebServer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12745,7 +12745,7 @@ namespace http {
1274512745
result = m_sql.safe_query(
1274612746
"SELECT Value1,Value2,Value5,Value6, Date,"
1274712747
" Counter1, Counter2, Counter3, Counter4 "
12748-
"FROM '%q' WHERE (DeviceRowID=='%q' AND Date>='%q'"
12748+
"FROM '%q' WHERE (DeviceRowID==%llu AND Date>='%q'"
1274912749
" AND Date<='%q') ORDER BY Date ASC",
1275012750
dbasetable.c_str(), idx, szDateStart, szDateEnd);
1275112751
if (result.size() > 0)

0 commit comments

Comments
 (0)