Skip to content

Commit

Permalink
no django I don't want the math functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ahgamut committed Feb 23, 2023
1 parent 59517c6 commit 625c142
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/django/db/backends/sqlite3/_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@ def register(connection):
connection.create_aggregate("VAR_POP", 1, VarPop)
connection.create_aggregate("VAR_SAMP", 1, VarSamp)
# Some math functions are enabled by default in SQLite 3.35+.
# yeah no I don't want them
sql = "select sqlite_compileoption_used('ENABLE_MATH_FUNCTIONS')"
if not connection.execute(sql).fetchone()[0]:
if False and not connection.execute(sql).fetchone()[0]:
create_deterministic_function("ACOS", 1, _sqlite_acos)
create_deterministic_function("ASIN", 1, _sqlite_asin)
create_deterministic_function("ATAN", 1, _sqlite_atan)
Expand Down

0 comments on commit 625c142

Please sign in to comment.