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
ea88062c
Commit
ea88062c
authored
Jul 07, 2001
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sync with jdbc2, remove gratuitous white space differences.
parent
dbf30bba
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
242 additions
and
245 deletions
+242
-245
src/interfaces/jdbc/org/postgresql/jdbc1/DatabaseMetaData.java
...nterfaces/jdbc/org/postgresql/jdbc1/DatabaseMetaData.java
+242
-245
No files found.
src/interfaces/jdbc/org/postgresql/jdbc1/DatabaseMetaData.java
View file @
ea88062c
...
@@ -424,7 +424,7 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData
...
@@ -424,7 +424,7 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData
}
}
/**
/**
* Get all the "extra" characters that can be
w
used in unquoted
* Get all the "extra" characters that can be used in unquoted
* identifier names (those beyond a-zA-Z0-9 and _)
* identifier names (those beyond a-zA-Z0-9 and _)
*
*
* <p>From the file src/backend/parser/scan.l, an identifier is
* <p>From the file src/backend/parser/scan.l, an identifier is
...
@@ -523,7 +523,7 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData
...
@@ -523,7 +523,7 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData
}
}
/**
/**
* Are expressions in "OR
C
ER BY" lists supported?
* Are expressions in "OR
D
ER BY" lists supported?
*
*
* <br>e.g. select * from t order by a + b;
* <br>e.g. select * from t order by a + b;
*
*
...
@@ -736,7 +736,7 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData
...
@@ -736,7 +736,7 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData
*/
*/
public
boolean
supportsOuterJoins
()
throws
SQLException
public
boolean
supportsOuterJoins
()
throws
SQLException
{
{
return
false
;
return
true
;
// yes 7.1 does
}
}
/**
/**
...
@@ -748,7 +748,7 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData
...
@@ -748,7 +748,7 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData
*/
*/
public
boolean
supportsFullOuterJoins
()
throws
SQLException
public
boolean
supportsFullOuterJoins
()
throws
SQLException
{
{
return
false
;
return
true
;
// yes in 7.1
}
}
/**
/**
...
@@ -760,7 +760,7 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData
...
@@ -760,7 +760,7 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData
*/
*/
public
boolean
supportsLimitedOuterJoins
()
throws
SQLException
public
boolean
supportsLimitedOuterJoins
()
throws
SQLException
{
{
return
false
;
return
true
;
// yes in 7.1
}
}
/**
/**
...
@@ -1009,7 +1009,7 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData
...
@@ -1009,7 +1009,7 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData
*/
*/
public
boolean
supportsUnion
()
throws
SQLException
public
boolean
supportsUnion
()
throws
SQLException
{
{
return
false
;
return
true
;
// 7.0?
}
}
/**
/**
...
@@ -1723,7 +1723,7 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData
...
@@ -1723,7 +1723,7 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData
//
//
// IMPORTANT: the query must be enclosed in ( )
// IMPORTANT: the query must be enclosed in ( )
private
static
final
String
getTableTypes
[][]
=
{
private
static
final
String
getTableTypes
[][]
=
{
{
"TABLE"
,
"(relkind='r' and relhasrules='f' and relname !~ '^pg_')"
},
{
"TABLE"
,
"(relkind='r' and relhasrules='f' and relname !~ '^pg_'
and relname !~ '^xinv'
)"
},
{
"VIEW"
,
"(relkind='v' and relname !~ '^pg_')"
},
{
"VIEW"
,
"(relkind='v' and relname !~ '^pg_')"
},
{
"INDEX"
,
"(relkind='i' and relname !~ '^pg_')"
},
{
"INDEX"
,
"(relkind='i' and relname !~ '^pg_')"
},
{
"SEQUENCE"
,
"(relkind='S' and relname !~ '^pg_')"
},
{
"SEQUENCE"
,
"(relkind='S' and relname !~ '^pg_')"
},
...
@@ -2186,8 +2186,7 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData
...
@@ -2186,8 +2186,7 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData
);
);
}
}
private
void
importLoop
(
Vector
tuples
,
java
.
sql
.
ResultSet
keyRelation
)
throws
SQLException
private
void
importLoop
(
Vector
tuples
,
java
.
sql
.
ResultSet
keyRelation
)
throws
SQLException
{
{
String
s
,
s2
;
String
s
,
s2
;
String
origTable
=
null
,
primTable
=
new
String
(
""
),
schema
;
String
origTable
=
null
,
primTable
=
new
String
(
""
),
schema
;
int
i
;
int
i
;
...
@@ -2262,7 +2261,6 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData
...
@@ -2262,7 +2261,6 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData
//return tuples;
//return tuples;
}
}
/**
/**
* Get a description of the primary key columns that are
* Get a description of the primary key columns that are
* referenced by a table's foreign key columns (the primary keys
* referenced by a table's foreign key columns (the primary keys
...
@@ -2644,7 +2642,6 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData
...
@@ -2644,7 +2642,6 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData
f
[
11
]
=
new
Field
(
connection
,
"PAGES"
,
iInt4Oid
,
4
);
f
[
11
]
=
new
Field
(
connection
,
"PAGES"
,
iInt4Oid
,
4
);
f
[
12
]
=
new
Field
(
connection
,
"FILTER_CONDITION"
,
iVarcharOid
,
32
);
f
[
12
]
=
new
Field
(
connection
,
"FILTER_CONDITION"
,
iVarcharOid
,
32
);
r
=
connection
.
ExecSQL
(
"select "
+
r
=
connection
.
ExecSQL
(
"select "
+
"c.relname, "
+
"c.relname, "
+
"x.indisunique, "
+
"x.indisunique, "
+
...
@@ -2700,5 +2697,5 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData
...
@@ -2700,5 +2697,5 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData
return
new
ResultSet
(
connection
,
f
,
v
,
"OK"
,
1
);
return
new
ResultSet
(
connection
,
f
,
v
,
"OK"
,
1
);
}
}
}
}
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