You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When {call XX (?)} is spliced in the callprocedure asyncworker class, the character set in the string is not converted. ODBC needs the string of utf16, but gives the string of utf8。
code:
// create the statement to call the stored procedure using the ODBC Call escape sequence:
// need to create the string "?,?,?,?" where the number of '?' is the number of parameters;
SQLTCHAR *parameterString = new SQLTCHAR255;
for (int i = 0; i < data->parameterCount; i++) {
if (i == (data->parameterCount - 1)) {
strcat((char *)parameterString, "?"); // for last parameter, don't add ','
} else {
strcat((char *)parameterString, "?,");
}
}
data->deleteColumns(); // delete data in columns for next result set
data->sql = new SQLTCHAR[255]();
sprintf((char *)data->sql, "{ CALL %s (%s) }", combinedProcedureName, parameterString);
The text was updated successfully, but these errors were encountered:
clach04
pushed a commit
to clach04/node-odbc__DO_NOT_USE
that referenced
this issue
Dec 17, 2020
When {call XX (?)} is spliced in the callprocedure asyncworker class, the character set in the string is not converted. ODBC needs the string of utf16, but gives the string of utf8。
code:
// create the statement to call the stored procedure using the ODBC Call escape sequence:
// need to create the string "?,?,?,?" where the number of '?' is the number of parameters;
SQLTCHAR *parameterString = new SQLTCHAR255;
The text was updated successfully, but these errors were encountered: