// Notice from backend
case 'N':
int l_nlen = stream.ReceiveIntegerR(4);
- conn.addWarning(conn.getEncoding().decode(stream.Receive(l_nlen-4)));
+ PSQLException notify = PSQLException.parseServerError(conn.getEncoding().decode(stream.Receive(l_nlen-4)));
+ conn.addWarning(notify.getMessage());
break;
case 'V':
throw new PSQLException("postgresql.con.backend", PSQLState.CONNECTION_UNABLE_TO_CONNECT, PSQLException.parseServerError(encoding.decode(pgStream.Receive(l_elen-4))));
case 'N':
int l_nlen = pgStream.ReceiveIntegerR(4);
- addWarning(encoding.decode(pgStream.Receive(l_nlen-4)));
+ PSQLException notify = PSQLException.parseServerError(encoding.decode(pgStream.Receive(l_nlen-4)));
+ addWarning(notify.getMessage());
break;
case 'S':
//TODO: handle parameter status messages