Using Prepared Statements
MemSQL version 6.Feature 'Audit logging with binary protocol' is not supported by SingleStore.
If you are using an older version of SingleStore, or using SingleStore with Audit Logging enabled, SingleStore does not support server-side prepared statements.
-
In the MySQL Connector/J (JDBC) driver, set
useServerPrepStmts=false
, which is the default configuration. -
In MariaDB Connector/J, set
useServerPrepStmts=false
. -
In ODBC, set
no_
.ssps=1 -
In the Go MySQL driver, set
interpolateParams=true
. -
In PHP PDO, set
PDO::ATTR_
.EMULATE_ PREPARES=TRUE
In many other databases, server-side prepared statements provide performance advantages, but SingleStore already compiles and caches query plans internally, so SingleStore does not need server-side prepared statements to get most of those performance advantages.
Last modified: February 20, 2025