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
e77708d9
Commit
e77708d9
authored
Dec 11, 2003
by
Dave Cramer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
patch to make sure PSQLState is Serializable and a test case to prove it
parent
67173060
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
src/interfaces/jdbc/org/postgresql/test/jdbc2/MiscTest.java
src/interfaces/jdbc/org/postgresql/test/jdbc2/MiscTest.java
+14
-3
No files found.
src/interfaces/jdbc/org/postgresql/test/jdbc2/MiscTest.java
View file @
e77708d9
...
...
@@ -3,9 +3,10 @@ package org.postgresql.test.jdbc2;
import
org.postgresql.test.TestUtil
;
import
junit.framework.TestCase
;
import
java.sql.*
;
import
java.io.*
;
/*
* $PostgreSQL: pgsql/src/interfaces/jdbc/org/postgresql/test/jdbc2/MiscTest.java,v 1.1
1 2003/11/29 22:41:23 pgsql
Exp $
* $PostgreSQL: pgsql/src/interfaces/jdbc/org/postgresql/test/jdbc2/MiscTest.java,v 1.1
2 2003/12/11 15:11:43 davec
Exp $
*
* Some simple tests based on problems reported by users. Hopefully these will
* help prevent previous problems from re-occuring ;-)
...
...
@@ -65,8 +66,18 @@ public class MiscTest extends TestCase
fail
(
"Should not execute this, as a SQLException s/b thrown"
);
con
.
commit
();
}
catch
(
Exception
ex
)
{}
catch
(
SQLException
ex
)
{
// Verify that the SQLException is serializable.
try
{
ByteArrayOutputStream
baos
=
new
ByteArrayOutputStream
();
ObjectOutputStream
oos
=
new
ObjectOutputStream
(
baos
);
oos
.
writeObject
(
ex
);
oos
.
close
();
}
catch
(
IOException
ioe
)
{
fail
(
ioe
.
getMessage
());
}
}
try
{
con
.
commit
();
...
...
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