Removing redundant ::regclass casting

This commit is contained in:
Raul Ochoa 2015-09-02 12:25:44 +02:00
parent 7582f2cbc5
commit afecef0e31
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ AS $$
FROM information_schema.columns c, pg_class _tn, pg_namespace _sn
WHERE table_name = _tn.relname
AND table_schema = _sn.nspname
AND _tn.oid = $1::regclass::oid
AND _tn.oid = $1::oid
AND _sn.oid = _tn.relnamespace;
$$ LANGUAGE SQL;

View File

@ -8,7 +8,7 @@ AS $$
WHERE table_name = _tn.relname
AND table_schema = _sn.nspname
AND column_name = $2
AND _tn.oid = $1::regclass::oid
AND _tn.oid = $1::oid
AND _sn.oid = _tn.relnamespace;
$$ LANGUAGE SQL;