Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## 0.16

### 0.16.2

- fix: Cast pg_proc char columns to Text explicitly

### 0.16.1

- fix: Use bind params regex from sqlalchemy while escaping colons.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "sqlalchemy-declarative-extensions"
version = "0.16.1"
version = "0.16.2"
authors = [
{name = "Dan Cardin", email = "ddcardin@gmail.com"},
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@

from sqlalchemy import (
String,
Text,
and_,
bindparam,
cast,
column,
exists,
func,
Expand Down Expand Up @@ -352,9 +354,9 @@ def get_types(arg_type_oids):
pg_type.c.typname.label("base_return_type"),
pg_proc.c.prosrc.label("source"),
pg_proc.c.prosecdef.label("security_definer"),
pg_proc.c.prokind.label("kind"),
cast(pg_proc.c.prokind, Text).label("kind"),
func.pg_get_function_arguments(pg_proc.c.oid).label("parameters"),
pg_proc.c.provolatile.label("volatility"),
cast(pg_proc.c.provolatile, Text).label("volatility"),
func.pg_get_function_result(pg_proc.c.oid).label("return_type_string"),
pg_proc.c.proargnames.label("arg_names"),
pg_proc.c.proargmodes.label("arg_modes"),
Expand Down
Loading