MaxDB 7.6.00.16

CREATE DBPROC test AS
BEGIN
   STOP(-20020, '123 some cyrillic here 456');
END;


SQLDBC 7.6.00.16


SQLDBC_PreparedStatement_prepareNTS(imp_sth->m_prepstmt, statement,SQLDBC_StringEncodingType_Encoding_UTF8;
 exec_rc = SQLDBC_PreparedStatement_executeASCII(imp_sth->m_prepstmt);
 if ( exec_rc != SQLDBC_OK && exec_rc != SQLDBC_NO_DATA_FOUND) {
SQLDBC_ErrorHndl *errhdl = SQLDBC_PreparedStatement_getError(imp_sth->m_prepstmt);
   char* errmsg = SQLDBC_ErrorHndl_getErrorText(errhdl)
   printf("%d '%s'\n", strlen(errmsg),errmsg);
 }



Following SQLDBC documentation SQLDBC_ErrorHndl_getErrorText returns UTF8 string. But I get


11 'POS(0) 123 '


--
MaxDB Discussion Mailing List
For list archives: http://lists.mysql.com/maxdb
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to