Не работает функция round до конкретного знака после запятой.
cursor.execute(f"SELECT round(cash,0) FROM users WHERE id = 694973241827000421")
Вылетает ошибка:
cursor.execute(f"SELECT round(cash,0) FROM users WHERE id = 694973241827000421")
psycopg2.errors.UndefinedFunction: function round(double precision, integer) does not exist
LINE 1: SELECT round(cash,0) FROM users WHERE id = 69497324182700042...
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.