Informix query against en_us.918 database from utf databse connection through DRDA - error code: 4220, SQL state is null

StackOverflow https://stackoverflow.com/questions/21290768

  •  01-10-2022
  •  | 
  •  

Question

We are connecting to a Informix database of Unicode through DRDA port.

And we have another database whose locale is English locale (en_us.819).

We are executing a query on English database using the connection to Unicode database (like dbname:'informix'.tablename).

We identified that this is happening when query try to retrieve 'XIC¢LILY NINETH' value which is in English locale database.

And same did worked fine with ODBC connection.

Error code : -4220, SQL State: null 

Any help/pointers/workarounds please!


Information from the comments

I am working with two databases with different db locale, say:

  • Database1 -> en_us.819 (English)
  • Database2 -> en_us.57372 (UTF8)

I am using DB2 common server client to connect to database (means DRDA connection).

  • Connect to Database1. Select * from user
    execution successful.
  • Connect to Database 2 Select * from Database1:’Informix’.User
    throws exception and it crashes the database.
Was it helpful?

Solution

It seems when connecting to Informix DB suing DRDO connection (through DB2 Data Server Client), it is not checking for any special characters that are not configured for Database. But, if you use Informix drivers, this will not allow you execute queries if query has few special characters like "small quotes", '¢' etc.

We have installed new patches on Database serves, it solved the problem.

Thanks!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top