Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<groupId>com.github.alaisi.pgasync</groupId>
<artifactId>postgres-async-driver</artifactId>
<version>0.10-SNAPSHOT</version>
<version>0.10.ryan</version>

<name>postgres-async-driver</name>
<description>Asynchronous PostgreSQL Java driver</description>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/github/pgasync/impl/PgConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import static com.github.pgasync.impl.message.RowDescription.ColumnDescription;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.CountDownLatch;
Expand Down Expand Up @@ -184,7 +184,7 @@ public void onCompleted() {
}

static Map<String,PgColumn> getColumns(ColumnDescription[] descriptions) {
Map<String,PgColumn> columns = new HashMap<>();
Map<String,PgColumn> columns = new LinkedHashMap<>();
for (int i = 0; i < descriptions.length; i++) {
columns.put(descriptions[i].getName().toUpperCase(), new PgColumn(i, descriptions[i].getType()));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public ErrorResponse read(ByteBuffer buffer) {
String code = null;
String message = null;

byte[] field = new byte[255];
byte[] field = new byte[2048];
for (byte type = buffer.get(); type != 0; type = buffer.get()) {
String value = getCString(buffer, field);
if (type == (byte) 'S') {
Expand Down