driver = 'pypostgresql'
supports_unicode_statements = True
-
supports_unicode_binds = True
description_encoding = None
-
- default_paramstyle = 'format'
-
+ default_paramstyle = 'pyformat'
+
# requires trunk version to support sane rowcounts
# TODO: use dbapi version information to set this flag appropariately
supports_sane_rowcount = True
-
supports_sane_multi_rowcount = False
-
+
execution_ctx_cls = PostgreSQL_pypostgresqlExecutionContext
colspecs = util.update_copy(
PGDialect.colspecs,
sqltypes.Float: sqltypes.Float, # prevents PGNumeric from being used
}
)
-
+
@classmethod
def dbapi(cls):
from postgresql.driver import dbapi20
self.assert_compile(matchtable.c.title.match('somstr'), "matchtable.title @@ to_tsquery(%(title_1)s)")
@testing.fails_on('postgresql+psycopg2', 'uses pyformat')
+ @testing.fails_on('postgresql+pypostgresql', 'uses pyformat')
@testing.fails_on('postgresql+zxjdbc', 'uses qmark')
def test_expression_positional(self):
self.assert_compile(matchtable.c.title.match('somstr'), "matchtable.title @@ to_tsquery(%s)")