000111655
Update with Current-Of-Cursor fails when a row contains a Chinese character.
Information |
Title | Update with Current-Of-Cursor fails when a row contains a Chinese character. |
---|
URL Name | failed-update-a-row-contains-chinese-character-via-current-of-cursor-update-on-some-situation |
---|
Article Number | 000111655 |
---|
Environment | Product: Connect for ODBC PostgreSQL driver
Version: 07.16.0251 (B0302, U0201) OS: Windows/Unix Database: Postgresql Application: All supported applications |
---|
Question/Problem Description |
|
---|
Steps to Reproduce | -Table DDL :
CREATE TABLE a_sasdxs (x INT PRIMARY KEY, Y VARCHAR(1)) INSERT INTO a_sasdxs (x, Y) VALUES(1, '?') -Steps to repro : Execute following API sequence to reproduce the issue : SQLSetStmtAttr(SQL_ATTR_CURSOR_TYPE=6, ValuePtr = SQL_CURSOR_KEYSET_DRIVEN) SQLSetStmtAttr(SQL_ATTR_ROW_BIND_TYPE,SQL_BIND_BY_COLUMN SQLSetStmtAttr(SQL_ATTR_CONCURRENCY,SQL_CONCUR_ROWVER) SQLSetStmtAttr(SQL_ATTR_USE_BOOKMARKS,SQL_UB_OFF) SQLPrepare("select "x", "y" from a_sasdxs for update") SQLBindCol(1, TargetType = SQL_C_LONG=4) SQLBindCol(2, TargetType = SQL_C_WCHAR=-8) SQLExecute() SQLFetch() SQLSetPos(RowNumber = 1, Operation = SQL_POSITION=0, LockType = SQL_LOCK_NO_CHANGE=0) SQLSetPos(RowNumber = 1, Operation = SQL_UPDATE=2, LockType = SQL_LOCK_NO_CHANGE=0) Return: SQL_ERROR=-1 stmt: szSqlState = "22001", *pfNativeError = 0, *pcbErrorMsg = 179, *ColumnNumber = -1, *RowNumber = 1 MessageText = "[DataDirect][ODBC PostgreSQL Wire Protocol driver]String data, right truncated. Error in parameter 2.This operation may have failed due to column aliasing on the select statement." |
---|
Clarifying Information |
---|
Error Message | [DataDirect][ODBC PostgreSQL Wire Protocol driver]String data, right truncated. Error in parameter x.This operation may have failed due to column aliasing on the select statement. |
---|
Defect Number | Defect 53915 |
---|
Enhancement Number |
---|
Cause |
---|
Resolution |
|
---|
Workaround |
---|
Notes |
---|
Last Modified Date | 11/20/2020 7:21 AM |
---|
Files |
Disclaimer |
The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information. Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages. |