234
234
utf8_to_ucs2(qstr, strlen(qstr), szSqlState, 6);
235
235
if (mtxt && tlen <= cbErrorMsgMax)
237
tlen = (SQLSMALLINT) utf8_to_ucs2(mtxt, tlen, szErrorMsg, cbErrorMsgMax);
237
SQLULEN ulen = utf8_to_ucs2_lf1(mtxt, tlen, FALSE, szErrorMsg, cbErrorMsgMax);
238
245
if (tlen >= cbErrorMsgMax)
239
246
ret = SQL_SUCCESS_WITH_INFO;