prepareStatement

fun prepareStatement(conn: <Error class: unknown class><<Error class: unknown class>>, sql: String): <Error class: unknown class><<Error class: unknown class>>

Accepts a MySQL connection and query string to prepare a statement.

The result can be used to construct a MySQLPreparedStatement and can be cached by MySQLNativeDriver.

Return

Pointer to a MYSQL-STMT

Parameters

conn

MySQL connection

sql

Query string

Throws

OutOfMemoryError

if statement can not be initialized due to lack of memory (the only documented failure condition)

IllegalArgumentException

if the statement can not be prepared