Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf736fdb

Browse files
author
Barry Lind
committed
Removed code that is no longer used and has been commented out
for the last two releases. Modified Files: jdbc/org/postgresql/Driver.java.in jdbc/org/postgresql/PG_Stream.java Removed Files: jdbc/org/postgresql/core/BytePoolDim1.java jdbc/org/postgresql/core/BytePoolDim2.java jdbc/org/postgresql/core/MemoryPool.java jdbc/org/postgresql/core/ObjectPool.java jdbc/org/postgresql/core/SimpleObjectPool.java
1 parentc43760a commitf736fdb

File tree

7 files changed

+5
-351
lines changed

7 files changed

+5
-351
lines changed

‎src/interfaces/jdbc/org/postgresql/Driver.java.in‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,6 @@ public class Driver implements java.sql.Driver
442442
}
443443

444444
//The build number should be incremented for every new build
445-
private static int m_buildNumber =103;
445+
private static int m_buildNumber =104;
446446

447447
}

‎src/interfaces/jdbc/org/postgresql/PG_Stream.java‎

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
importorg.postgresql.util.*;
1111

1212
/*
13-
* $Id: PG_Stream.java,v 1.16 2001/11/19 23:16:45 momjian Exp $
13+
* $Id: PG_Stream.java,v 1.17 2002/08/20 04:26:02 barry Exp $
1414
*
1515
* This class is used by Connection & PGlobj for communicating with the
1616
* backend.
@@ -25,9 +25,6 @@ public class PG_Stream
2525
privateBufferedOutputStreampg_output;
2626
privatebyte[]byte_buf =newbyte[8*1024];
2727

28-
BytePoolDim1bytePoolDim1 =newBytePoolDim1();
29-
BytePoolDim2bytePoolDim2 =newBytePoolDim2();
30-
3128
/*
3229
* Constructor: Connect to the PostgreSQL back end and return
3330
* a stream connection.
@@ -69,7 +66,7 @@ public void SendChar(int val) throws IOException
6966
*/
7067
publicvoidSendInteger(intval,intsiz)throwsIOException
7168
{
72-
byte[]buf =bytePoolDim1.allocByte(siz);
69+
byte[]buf =newbyte[siz];
7370

7471
while (siz-- >0)
7572
{
@@ -272,7 +269,7 @@ public byte[][] ReceiveTuple(int nf, boolean bin) throws SQLException
272269
{
273270
inti,bim = (nf +7) /8;
274271
byte[]bitmask =Receive(bim);
275-
byte[][]answer =bytePoolDim2.allocByte(nf);
272+
byte[][]answer =newbyte[nf][0];
276273

277274
intwhichbit =0x80;
278275
intwhichbyte =0;
@@ -310,7 +307,7 @@ public byte[][] ReceiveTuple(int nf, boolean bin) throws SQLException
310307
*/
311308
privatebyte[]Receive(intsiz)throwsSQLException
312309
{
313-
byte[]answer =bytePoolDim1.allocByte(siz);
310+
byte[]answer =newbyte[siz];
314311
Receive(answer,0,siz);
315312
returnanswer;
316313
}

‎src/interfaces/jdbc/org/postgresql/core/BytePoolDim1.java‎

Lines changed: 0 additions & 100 deletions
This file was deleted.

‎src/interfaces/jdbc/org/postgresql/core/BytePoolDim2.java‎

Lines changed: 0 additions & 69 deletions
This file was deleted.

‎src/interfaces/jdbc/org/postgresql/core/MemoryPool.java‎

Lines changed: 0 additions & 19 deletions
This file was deleted.

‎src/interfaces/jdbc/org/postgresql/core/ObjectPool.java‎

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp