Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
355cc69d
Commit
355cc69d
authored
Nov 02, 2001
by
Dave Cramer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
proper select for Jason Davies patch to getImportedKeys
parent
0b1289e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java
...nterfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java
+9
-11
No files found.
src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java
View file @
355cc69d
...
...
@@ -15,7 +15,7 @@ import org.postgresql.util.PSQLException;
/**
* This class provides information about the database as a whole.
*
* $Id: DatabaseMetaData.java,v 1.4
2 2001/10/31 20:27:37
davec Exp $
* $Id: DatabaseMetaData.java,v 1.4
3 2001/11/02 23:51:18
davec Exp $
*
* <p>Many of the methods here return lists of information in ResultSets. You
* can use the normal ResultSet methods such as getString and getInt to
...
...
@@ -2643,19 +2643,17 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData
+
"a.tgdeferrable,"
+
"a.tginitdeferred "
+
"FROM "
+
"(SELECT t.tgargs, t.tgconstrname, p.proname,
t.tgdeferrable,
"
+
"t.tginitdeferred "
+
"(SELECT t.tgargs, t.tgconstrname, p.proname,"
+
"t.tg
deferrable, t.tg
initdeferred "
+
"FROM pg_class as c, pg_proc as p, pg_trigger as t "
+
"WHERE c.rel
filenode=t.tgrelid AND t.tgfoid = p.o
id "
+
"AND
p.proname LIKE 'RI_FKey_%_upd') as a,
"
+
"WHERE c.rel
name like '"
+
table
+
"' AND c.relfilenode=t.tgrel
id "
+
"AND
t.tgfoid = p.oid AND p.proname LIKE 'RI_FKey_%_upd') as a,
"
+
"(SELECT t.tgconstrname, p.proname "
+
"FROM pg_class as c, pg_proc as p, pg_trigger as t "
+
"WHERE c.relfilenode=t.tgrelid AND t.tgfoid = p.oid "
+
"AND p.proname LIKE 'RI_FKey_%_del') as b,"
+
"(SELECT t.tgconstrname FROM pg_class as c, pg_trigger as t "
+
"WHERE c.relname like '"
+
table
+
"' AND c.relfilenode=t.tgrelid) as c "
+
"WHERE a.tgconstrname=b.tgconstrname AND a.tgconstrname=c.tgconstrname"
);
+
"WHERE c.relname like '"
+
table
+
"' AND c.relfilenode=t.tgrelid "
+
"AND t.tgfoid = p.oid AND p.proname LIKE 'RI_FKey_%_del') as b "
+
"WHERE a.tgconstrname=b.tgconstrname"
);
Vector
tuples
=
new
Vector
();
while
(
rs
.
next
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment