Hi James:

I don't think that is a standard. As far as I know, error code is not 
something that is standardised across different databases. SQLState is 
something that has some standard. For the particular exception, the 
SQLState is null.

Use java.sql.CallableStatement.executeUpdate() for non-queries. 
ERRORCODE=-4476, SQLSTATE=null

In the spec in sayonara's site, under the status section, there is only 
specifications to SQLState, but no specification about ERRORCODE.

On 02/08/2013 04:37 PM, James Taylor wrote:
>
> In src/main/java/com/salesforce/phoenix/jdbc/PhoenixStatement.java:
>
> > @@ -144,7 +146,8 @@ public boolean execute() throws SQLException {
> >
> >          @Override
> >          public int executeUpdate() throws SQLException {
> > -            throw new SQLException("executeUpdate may not be used for queries: " + this);
>
> These are standard too: caling executeUpdate when you should be 
> calling executeQuery: 
> https://forums.oracle.com/forums/thread.jspa?threadID=1320511
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/forcedotcom/phoenix/pull/35/files#r2951823>..
>