File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
src/sqlalchemy_declarative_extensions/dialects/postgresql Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 22
33## 0.16
44
5+ ### 0.16.2
6+
7+ - fix: Cast pg_proc char columns to Text explicitly
8+
59### 0.16.1
610
711- fix: Use bind params regex from sqlalchemy while escaping colons.
Original file line number Diff line number Diff line change 11[project ]
22name = " sqlalchemy-declarative-extensions"
3- version = " 0.16.1 "
3+ version = " 0.16.2 "
44authors = [
55 {name = " Dan Cardin" , email = " ddcardin@gmail.com" },
66]
Original file line number Diff line number Diff line change 44
55from sqlalchemy import (
66 String ,
7+ Text ,
78 and_ ,
89 bindparam ,
10+ cast ,
911 column ,
1012 exists ,
1113 func ,
@@ -352,9 +354,9 @@ def get_types(arg_type_oids):
352354 pg_type .c .typname .label ("base_return_type" ),
353355 pg_proc .c .prosrc .label ("source" ),
354356 pg_proc .c .prosecdef .label ("security_definer" ),
355- pg_proc .c .prokind .label ("kind" ),
357+ cast ( pg_proc .c .prokind , Text ) .label ("kind" ),
356358 func .pg_get_function_arguments (pg_proc .c .oid ).label ("parameters" ),
357- pg_proc .c .provolatile .label ("volatility" ),
359+ cast ( pg_proc .c .provolatile , Text ) .label ("volatility" ),
358360 func .pg_get_function_result (pg_proc .c .oid ).label ("return_type_string" ),
359361 pg_proc .c .proargnames .label ("arg_names" ),
360362 pg_proc .c .proargmodes .label ("arg_modes" ),
You can’t perform that action at this time.
0 commit comments