mysql-native v3.0.0

API Reference Home: [This Version] [Latest Version] [Other Versions]


Function Prepared.setNullArg

Sets a prepared statement parameter to NULL.

void setNullArg (
  ulong index
);

This is here mainly for legacy reasons. You can set a field to null simply by saying prepared.setArg(index, null);

Type Mappings

See the MySQL/D Type Mappings tables

Parameters

NameDescription
index The zero based index