You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using detective with the MariaDB Hassio addon I get the following error on calling db.fetch_all_sensor_data(limit=1e9):
ProgrammingError: (MySQLdb._exceptions.ProgrammingError) (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '1000000000.0' at line 8")
[SQL:
SELECT domain, entity_id, state, last_changed, attributes
FROM states
WHERE
domain IN ('binary_sensor', 'sensor')
AND
state NOT IN ('unknown', 'unavailable')
ORDER BY last_changed DESC
LIMIT 1000000000.0
Using an int is fine. Add format passed values as int
The text was updated successfully, but these errors were encountered:
robmarkcole
changed the title
SQL error with MariaDB
SQL error with MariaDB if pass float as limit
Feb 15, 2020
Using detective with the MariaDB Hassio addon I get the following error on calling
db.fetch_all_sensor_data(limit=1e9)
:Using an int is fine. Add format passed values as int
The text was updated successfully, but these errors were encountered: