Migrated from:
At this moment we allow users to place ? as placeholders in SQL queries which get replaces by node-cubrid with provided params before sending the request to the server. Thus, the server receives already prepared statements.
There is a limitation of this functionality just like in node-mysql that when a statement includes a question mark, the bind param operation behaves unexpectedly.
To avoid this, we can ask the server to prepare the statement, and then we will send the parameters in a separate request just like other CUBRID C API based libraries do.
Migrated from:
At this moment we allow users to place
?as placeholders in SQL queries which get replaces bynode-cubridwith providedparamsbefore sending the request to the server. Thus, the server receives already prepared statements.There is a limitation of this functionality just like in node-mysql that when a statement includes a question mark, the bind param operation behaves unexpectedly.
To avoid this, we can ask the server to prepare the statement, and then we will send the parameters in a separate request just like other CUBRID C API based libraries do.