Error adding a record with a long field in Informix 3.81 ODBC driver using ADO
Posted in 2003
Topics: Connectivity: ODBC / JDBC / .NET
En espa'ol abajo. Hello everyone, I have a Visual Basic 6 application that uses ADO to connect to an Informix 7.3 database through ODBC. My problem is that when I add a new register on a RecordSet with a long field (longer than 255 characters) the application does not respond. The COM+ component that I am using to establish the connection hangs indefinitely. This only occurs when using the ODBC 3.81 Informix driver (Informix Client SDK 2.80). That happens when I do an .AddNew. I can modify that kind of registers (with very long fields) without a problem if they previously existed in the database. Otherwise the connection hangs. I tried with other Informix drivers (versions 3.32 (SDK 2.50), 3.33 (SDK 2.60), 3.34 and 3.80 (SDK 2.70) and 3.82 (SDK 2.81)) and everything works perfectly. I'll appreciate any points on this that you might have. Thanks for your help, Marta. Now in spanish: Hola a todos, Tengo una aplicaci'n hecha en Visual Basic 6. Estoy usando ADO para conectarla a una base de datos Informix 7.3, a trav's de un origen de datos ODBC. Problema: Cuando a'ado un nuevo registro en un RecordSet con un campo largo, mayor que 255 caracteres, la aplicaci'n no responde. El componente COM+ que estoy usando para establecer la conexi'n se queda bloqueado infinitamente. Ocurre solamente con el driver ODBC 3.81 de Informix (Informix Client SDK 2.80). Solamente pasa con un .AddNew. Puedo modificar esa clase de registros (con campos largos) sin ning'n problema, si ya existen antes en la base de datos. He probado con otros drivers odbc de Informix (versiones 3.32 (SDK 2.50), 3.33 (SDK 2.60), 3.34 y 3.80 (SDK 2.70) y 3.82 (SDK 2.81)) y funciona perfectamente en todos los casos. Agradezco cualquier idea. Un saludo, Marta.