Fix error on pg96 because of wrong minimum version
This commit is contained in:
parent
eec75e28f9
commit
f130c426a1
1 changed files with 2 additions and 2 deletions
|
|
@ -10,7 +10,7 @@ std::string PgTriggerContainer::getLoadQuery() const
|
||||||
"SELECT oid, tgname, tgrelid, tgfoid, tgtype, tgenabled, tgisinternal, tgconstrrelid, \n"
|
"SELECT oid, tgname, tgrelid, tgfoid, tgtype, tgenabled, tgisinternal, tgconstrrelid, \n"
|
||||||
" tgconstrindid, tgconstraint, tgdeferrable, tginitdeferred, tgnargs, tgattr, \n"
|
" tgconstrindid, tgconstraint, tgdeferrable, tginitdeferred, tgnargs, tgattr, \n"
|
||||||
" tgargs, COALESCE(substring(pg_get_triggerdef(oid), 'WHEN (.*) EXECUTE PROCEDURE'), substring(pg_get_triggerdef(oid), 'WHEN (.*) \\$trigger')) AS whenclause";
|
" tgargs, COALESCE(substring(pg_get_triggerdef(oid), 'WHEN (.*) EXECUTE PROCEDURE'), substring(pg_get_triggerdef(oid), 'WHEN (.*) \\$trigger')) AS whenclause";
|
||||||
if (minimumVersion(90600)) {
|
if (minimumVersion(100000)) {
|
||||||
q += ", tgoldtable, tgnewtable";
|
q += ", tgoldtable, tgnewtable";
|
||||||
}
|
}
|
||||||
q +=
|
q +=
|
||||||
|
|
@ -38,7 +38,7 @@ PgTrigger PgTriggerContainer::loadElem(const Pgsql::Row &row)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
col >> v.whenclause;
|
col >> v.whenclause;
|
||||||
if (minimumVersion(90600)) {
|
if (minimumVersion(100000)) {
|
||||||
col >> v.oldtable >> v.newtable;
|
col >> v.oldtable >> v.newtable;
|
||||||
}
|
}
|
||||||
return v;
|
return v;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue