@ Override public ResultSet executeQuery ( String sql ) throws SQLException { checkClosed ( ) ; VoltSQL query = VoltSQL . parseSQL ( sql ) ; if ( ! query . isOfType ( VoltSQL . TYPE_SELECT ) ) { throw SQLError . get ( SQLError . ILLEGAL_STATEMENT , sql ) ; } return this . executeQuery ( query ) ; }
Executes the given SQL statement which returns a single ResultSet object .