You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Selecting a constant string fails unless the string type (text/varchar/char) is specified.
What are the steps to reproduce the behavior?
importconnectorxascxconn= ... # setup your connection stringcx.read_sql(conn, "SELECT 1 AS value") # suceedscx.read_sql(conn, "SELECT True AS value") # suceedscx.read_sql(conn, "SELECT 'Y' AS value") # failscx.read_sql(conn, "SELECT 'Y'::CHAR AS value") # succeedscx.read_sql(conn, "SELECT 'Y'::VARCHAR AS value") # succeedscx.read_sql(conn, "SELECT 'Y'::TEXT AS value") # succeeds
What is the error?
thread '<unnamed>' panicked at 'not implemented: unknown', D:\a\connector-x\connector-x\connectorx\src\sources\postgres\typesystem.rs:100:22
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Projects\project-slim\venv_slim\lib\site-packages\connectorx\__init__.py", line 224, in read_sql
result = _read_sql(
pyo3_runtime.PanicException: not implemented: unknown
Show the error result here.
The text was updated successfully, but these errors were encountered:
What language are you using?
Python 3.9.5
What database are you using?
PostgreSQL, Oracle, MSSQL Server
Can you describe your bug?
Selecting a constant string fails unless the string type (text/varchar/char) is specified.
What are the steps to reproduce the behavior?
What is the error?
Show the error result here.
The text was updated successfully, but these errors were encountered: