Fix bug on get columns for postgres (#1779)
Fix bug on get columns for postgres Reviewed-on: https://gitea.com/xorm/xorm/pulls/1779
This commit is contained in:
parent
b10919ec56
commit
3e0179ff26
|
@ -1015,7 +1015,7 @@ WHERE n.nspname= s.table_schema AND c.relkind = 'r'::char AND c.relname = $1%s A
|
||||||
|
|
||||||
schema := db.getSchema()
|
schema := db.getSchema()
|
||||||
if schema != "" {
|
if schema != "" {
|
||||||
s = fmt.Sprintf(s, "AND s.table_schema = $2")
|
s = fmt.Sprintf(s, " AND s.table_schema = $2")
|
||||||
args = append(args, schema)
|
args = append(args, schema)
|
||||||
} else {
|
} else {
|
||||||
s = fmt.Sprintf(s, "")
|
s = fmt.Sprintf(s, "")
|
||||||
|
|
Loading…
Reference in New Issue