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
7ac2f11c
Commit
7ac2f11c
authored
Dec 12, 2003
by
Dave Cramer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add missing SQLState by Patrick Higgins
parent
605c1e6d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
...ces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
+2
-2
src/interfaces/jdbc/org/postgresql/util/PSQLException.java
src/interfaces/jdbc/org/postgresql/util/PSQLException.java
+3
-1
No files found.
src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
View file @
7ac2f11c
...
...
@@ -26,7 +26,7 @@ import java.sql.Timestamp;
import
java.sql.Types
;
import
java.util.Vector
;
/* $PostgreSQL: pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java,v 1.4
3 2003/12/12 00:26:20
davec Exp $
/* $PostgreSQL: pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java,v 1.4
4 2003/12/12 18:36:19
davec Exp $
* This class defines methods of the jdbc1 specification. This class is
* extended by org.postgresql.jdbc2.AbstractJdbc2Statement which adds the jdbc2
* methods. The real Statement class (for jdbc1) is org.postgresql.jdbc1.Jdbc1Statement
...
...
@@ -526,7 +526,7 @@ public abstract class AbstractJdbc1Statement implements BaseStatement
callResult
=
result
.
getObject
(
1
);
int
columnType
=
result
.
getMetaData
().
getColumnType
(
1
);
if
(
columnType
!=
functionReturnType
)
throw
new
PSQLException
(
"postgresql.call.wrongrtntype"
,
throw
new
PSQLException
(
"postgresql.call.wrongrtntype"
,
PSQLState
.
DATA_TYPE_MISMATCH
,
new
Object
[]{
"java.sql.Types="
+
columnType
,
"java.sql.Types="
+
functionReturnType
});
result
.
close
();
...
...
src/interfaces/jdbc/org/postgresql/util/PSQLException.java
View file @
7ac2f11c
...
...
@@ -7,7 +7,7 @@
* Copyright (c) 2003, PostgreSQL Global Development Group
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/interfaces/jdbc/org/postgresql/util/PSQLException.java,v 1.1
4 2003/11/29 19:52:11 pgsql
Exp $
* $PostgreSQL: pgsql/src/interfaces/jdbc/org/postgresql/util/PSQLException.java,v 1.1
5 2003/12/12 18:36:20 davec
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -224,6 +224,8 @@ public class PSQLException extends SQLException
public
String
getSQLState
()
{
if
(
state
==
null
)
return
PSQLState
.
UNKNOWN_STATE
.
getState
();
return
state
.
getState
();
}
}
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