Commit Graph

3 Commits

Author SHA1 Message Date
6eb67283df fix: use timedelta instead of time to cast TIME column in B compatibility mode(#IAIE7I)
In mysql compatibility mode, we should convert the TIME column to a python datetime.timedelta type,
just like the behavior of PyMySQL and mysql-connector-python.

See also:
- PyMySQL: 95635f587b/pymysql/converters.py (L344)
- mysql-connector-python: 59817f3de4/mysql-connector-python/lib/mysql/connector/conversion.py (L593)
2024-09-04 15:49:24 +08:00
5235f6399c 解决uint数据查询报错
连接数据库后动态注册uint类型

无效修改和少提交的修改

注册uint函数封装后再加入到connection_setup函数里

函数名改成pq_get_custom_type_oid; 去掉SHOW前缀

oid改成unsigned int类型
2024-03-27 10:20:42 +08:00
3553ed0e30 first commit based on psycopg2 2.9 version 2021-07-05 21:34:17 +08:00