Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
3daad2ae
Commit
3daad2ae
authored
22 years ago
by
Dave Cramer
Browse files
Options
Downloads
Patches
Plain Diff
case sensitive updates by Kris Jurka
parent
b2228675
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
+17
-4
17 additions, 4 deletions
...ces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
with
17 additions
and
4 deletions
src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
+
17
−
4
View file @
3daad2ae
...
@@ -15,7 +15,7 @@ import org.postgresql.util.PGbytea;
...
@@ -15,7 +15,7 @@ import org.postgresql.util.PGbytea;
import
org.postgresql.util.PSQLException
;
import
org.postgresql.util.PSQLException
;
/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Attic/AbstractJdbc2ResultSet.java,v 1.1
0
2002/1
1/04 0
6:
4
2:3
3 barry
Exp $
/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Attic/AbstractJdbc2ResultSet.java,v 1.1
1
2002/1
2/23 1
6:
1
2:3
6 davec
Exp $
* This class defines methods of the jdbc2 specification. This class extends
* This class defines methods of the jdbc2 specification. This class extends
* org.postgresql.jdbc1.AbstractJdbc1ResultSet which provides the jdbc1
* org.postgresql.jdbc1.AbstractJdbc1ResultSet which provides the jdbc1
* methods. The real Statement class (for jdbc2) is org.postgresql.jdbc2.Jdbc2ResultSet
* 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
...
@@ -1009,7 +1009,9 @@ public abstract class AbstractJdbc2ResultSet extends org.postgresql.jdbc1.Abstra
{
{
String
column
=
(
String
)
columns
.
nextElement
();
String
column
=
(
String
)
columns
.
nextElement
();
updateSQL
.
append
(
column
+
"= ?"
);
updateSQL
.
append
(
"\""
);
updateSQL
.
append
(
column
);
updateSQL
.
append
(
"\" = ?"
);
if
(
i
<
numColumns
-
1
)
if
(
i
<
numColumns
-
1
)
{
{
...
@@ -1026,7 +1028,9 @@ public abstract class AbstractJdbc2ResultSet extends org.postgresql.jdbc1.Abstra
...
@@ -1026,7 +1028,9 @@ public abstract class AbstractJdbc2ResultSet extends org.postgresql.jdbc1.Abstra
{
{
PrimaryKey
primaryKey
=
((
PrimaryKey
)
primaryKeys
.
get
(
i
));
PrimaryKey
primaryKey
=
((
PrimaryKey
)
primaryKeys
.
get
(
i
));
updateSQL
.
append
(
primaryKey
.
name
).
append
(
"= ?"
);
updateSQL
.
append
(
"\""
);
updateSQL
.
append
(
primaryKey
.
name
);
updateSQL
.
append
(
"\" = ?"
);
if
(
i
<
numKeys
-
1
)
if
(
i
<
numKeys
-
1
)
{
{
...
@@ -1328,7 +1332,16 @@ public abstract class AbstractJdbc2ResultSet extends org.postgresql.jdbc1.Abstra
...
@@ -1328,7 +1332,16 @@ public abstract class AbstractJdbc2ResultSet extends org.postgresql.jdbc1.Abstra
else
else
{
{
// otherwise go and get the primary keys and create a hashtable of keys
// 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
++
)
for
(;
rs
.
next
();
i
++
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment