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
ece84bf8
Commit
ece84bf8
authored
May 29, 2003
by
Barry Lind
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Applied patch from Fernando Nasser to improve buffer sizes to avoid unnecessary resizing.
parent
fb630cc4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
...ces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
+2
-2
src/interfaces/jdbc/org/postgresql/util/PGbytea.java
src/interfaces/jdbc/org/postgresql/util/PGbytea.java
+2
-2
No files found.
src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
View file @
ece84bf8
...
...
@@ -25,7 +25,7 @@ import java.sql.Timestamp;
import
java.sql.Types
;
import
java.util.Vector
;
/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/AbstractJdbc1Statement.java,v 1.2
2 2003/05/29 04:39:49
barry Exp $
/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/AbstractJdbc1Statement.java,v 1.2
3 2003/05/29 04:48:33
barry 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
...
...
@@ -1032,7 +1032,7 @@ public abstract class AbstractJdbc1Statement implements BaseStatement
synchronized
(
sbuf
)
{
sbuf
.
setLength
(
0
);
sbuf
.
ensureCapacity
(
x
.
length
());
sbuf
.
ensureCapacity
(
x
.
length
()
+
(
int
)(
x
.
length
()
/
10
)
);
int
i
;
sbuf
.
append
(
'\''
);
...
...
src/interfaces/jdbc/org/postgresql/util/PGbytea.java
View file @
ece84bf8
...
...
@@ -6,7 +6,7 @@
* Copyright (c) 2003, PostgreSQL Global Development Group
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/util/Attic/PGbytea.java,v 1.
7 2003/03/07 18:39:46
barry Exp $
* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/util/Attic/PGbytea.java,v 1.
8 2003/05/29 04:48:33
barry Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -68,7 +68,7 @@ public class PGbytea
{
if
(
p_buf
==
null
)
return
null
;
StringBuffer
l_strbuf
=
new
StringBuffer
(
p_buf
.
length
);
StringBuffer
l_strbuf
=
new
StringBuffer
(
2
*
p_buf
.
length
);
for
(
int
i
=
0
;
i
<
p_buf
.
length
;
i
++)
{
int
l_int
=
(
int
)
p_buf
[
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