Skip to content

Commit

Permalink
Change default type mapping for boolean to BOOLEAN for MySQL
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyMcCormick committed Apr 17, 2024
1 parent 282d727 commit 384130e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/felis/db/sqltypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def compile_tinyint(type_: Any, compiler: Any, **kw: Any) -> str:

_TypeMap = Mapping[str, types.TypeEngine | type[types.TypeEngine]]

boolean_map: _TypeMap = {MYSQL: mysql.BIT(1), ORACLE: oracle.NUMBER(1), POSTGRES: postgresql.BOOLEAN()}
boolean_map: _TypeMap = {MYSQL: mysql.BOOLEAN, ORACLE: oracle.NUMBER(1), POSTGRES: postgresql.BOOLEAN()}

byte_map: _TypeMap = {
MYSQL: mysql.TINYINT(),
Expand Down

0 comments on commit 384130e

Please sign in to comment.