Skip to content

Commit 1099f70

Browse files
author
Eugene Shershen
committed
remove NullType mapping to align with standard PostgreSQL dialect and avoid DDL compilation errors
1 parent 24e3a71 commit 1099f70

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

psqlpy_sqlalchemy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
PsqlpyDialect = PSQLPyAsyncDialect
44

5-
__version__ = "0.1.0a6"
5+
__version__ = "0.1.0a7"
66
__all__ = ["PsqlpyDialect", "PSQLPyAsyncDialect"]

psqlpy_sqlalchemy/dialect.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,8 @@ class PSQLPyAsyncDialect(PGDialect):
264264
sqltypes.SmallInteger: _PGSmallInteger,
265265
sqltypes.BigInteger: _PGBigInteger,
266266
sqltypes.Boolean: _PGBoolean,
267-
sqltypes.NullType: _PGNullType,
267+
# Note: NullType mapping removed - standard PostgreSQL dialect doesn't map it
268+
# and mapping it with render_bind_cast=True causes DDL compilation errors
268269
},
269270
)
270271

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "psqlpy-sqlalchemy"
7-
version = "0.1.0a6"
7+
version = "0.1.0a7"
88
description = "SQLAlchemy dialect for psqlpy PostgreSQL driver"
99
readme = "README.md"
1010
license = {text = "MIT"}

0 commit comments

Comments
 (0)