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
3daad2ae
Commit
3daad2ae
authored
Dec 23, 2002
by
Dave Cramer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
case sensitive updates by Kris Jurka
parent
b2228675
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
...ces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
+17
-4
No files found.
src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
View file @
3daad2ae
...
...
@@ -15,7 +15,7 @@ import org.postgresql.util.PGbytea;
import
org.postgresql.util.PSQLException
;
/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Attic/AbstractJdbc2ResultSet.java,v 1.1
0 2002/11/04 06:42:33 barry
Exp $
/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Attic/AbstractJdbc2ResultSet.java,v 1.1
1 2002/12/23 16:12:36 davec
Exp $
* This class defines methods of the jdbc2 specification. This class extends
* org.postgresql.jdbc1.AbstractJdbc1ResultSet which provides the jdbc1
* methods. The real Statement class (for jdbc2) is org.postgresql.jdbc2.Jdbc2ResultSet
...
...
@@ -1009,7 +1009,9 @@ public abstract class AbstractJdbc2ResultSet extends org.postgresql.jdbc1.Abstra
{
String
column
=
(
String
)
columns
.
nextElement
();
updateSQL
.
append
(
column
+
"= ?"
);
updateSQL
.
append
(
"\""
);
updateSQL
.
append
(
column
);
updateSQL
.
append
(
"\" = ?"
);
if
(
i
<
numColumns
-
1
)
{
...
...
@@ -1026,7 +1028,9 @@ public abstract class AbstractJdbc2ResultSet extends org.postgresql.jdbc1.Abstra
{
PrimaryKey
primaryKey
=
((
PrimaryKey
)
primaryKeys
.
get
(
i
));
updateSQL
.
append
(
primaryKey
.
name
).
append
(
"= ?"
);
updateSQL
.
append
(
"\""
);
updateSQL
.
append
(
primaryKey
.
name
);
updateSQL
.
append
(
"\" = ?"
);
if
(
i
<
numKeys
-
1
)
{
...
...
@@ -1328,7 +1332,16 @@ public abstract class AbstractJdbc2ResultSet extends org.postgresql.jdbc1.Abstra
else
{
// otherwise go and get the primary keys and create a hashtable of keys
java
.
sql
.
ResultSet
rs
=
((
java
.
sql
.
Connection
)
connection
).
getMetaData
().
getPrimaryKeys
(
""
,
""
,
tableName
);
// if the user has supplied a quoted table name
// remove the quotes, but preserve the case.
// otherwise fold to lower case.
String
quotelessTableName
;
if
(
tableName
.
startsWith
(
"\""
)
&&
tableName
.
endsWith
(
"\""
))
{
quotelessTableName
=
tableName
.
substring
(
1
,
tableName
.
length
()-
1
);
}
else
{
quotelessTableName
=
tableName
.
toLowerCase
();
}
java
.
sql
.
ResultSet
rs
=
((
java
.
sql
.
Connection
)
connection
).
getMetaData
().
getPrimaryKeys
(
""
,
""
,
quotelessTableName
);
for
(;
rs
.
next
();
i
++
)
...
...
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