Author: jolee
Date: 2013-08-01 14:25:26 -0400 (Thu, 01 Aug 2013)
New Revision: 4588
Modified:
branches/7.7.x/runtime/src/main/java/org/teiid/odbc/ODBCServerRemoteImpl.java
branches/7.7.x/runtime/src/main/java/org/teiid/transport/PgBackendProtocol.java
Log:
TEIID-2604: ODBC string error response message is incorrect
Modified: branches/7.7.x/runtime/src/main/java/org/teiid/odbc/ODBCServerRemoteImpl.java
===================================================================
---
branches/7.7.x/runtime/src/main/java/org/teiid/odbc/ODBCServerRemoteImpl.java 2013-08-01
16:34:50 UTC (rev 4587)
+++
branches/7.7.x/runtime/src/main/java/org/teiid/odbc/ODBCServerRemoteImpl.java 2013-08-01
18:25:26 UTC (rev 4588)
@@ -434,6 +434,7 @@
}
} catch (SQLException e) {
errorOccurred(e);
+ return;
}
this.portalMap.put(bindName, new Portal(bindName, prepareName, previous.sql,
previous.stmt, resultColumnFormat));
Modified: branches/7.7.x/runtime/src/main/java/org/teiid/transport/PgBackendProtocol.java
===================================================================
---
branches/7.7.x/runtime/src/main/java/org/teiid/transport/PgBackendProtocol.java 2013-08-01
16:34:50 UTC (rev 4587)
+++
branches/7.7.x/runtime/src/main/java/org/teiid/transport/PgBackendProtocol.java 2013-08-01
18:25:26 UTC (rev 4588)
@@ -662,18 +662,9 @@
writeString("08P01");
write('M');
writeString(message);
+ write(0);
sendMessage();
}
-
- private void sendNoticeResponse(String message) {
- trace("notice:", message);
- startMessage('N');
- write('S');
- writeString("ERROR");
- write('M');
- writeString(message);
- sendMessage();
- }
private void sendParseComplete() {
startMessage('1');
Show replies by date