Logo Search packages:      
Sourcecode: mysql-connector-java version File versions  Download package

void com::mysql::jdbc::ServerPreparedStatement::setBytes ( int  parameterIndex,
byte[]  x 
) throws SQLException [inline]

See also:
java.sql.PreparedStatement::setBytes(int, byte)

Reimplemented from com::mysql::jdbc::PreparedStatement.

Definition at line 1756 of file ServerPreparedStatement.java.

References checkClosed(), getBinding(), and setNull().


            if (x == null) {
                  setNull(parameterIndex, java.sql.Types.BINARY);
            } else {
                  BindValue binding = getBinding(parameterIndex, false);
                  setType(binding, MysqlDefs.FIELD_TYPE_VAR_STRING);

                  binding.value = x;
                  binding.isNull = false;
                  binding.isLongData = false;

Generated by  Doxygen 1.6.0   Back to index