![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
* string sql = "SELECT DECRYPT_CHAR(field_encrypted, ?) <-- this ? apparently cant be resolved as SQL_TYPE and .Bind method fails. AS field_decrypted" + * * * * * * * * * * " FROM some_table WHERE id = 48084"; snip. |
#3
| |||
| |||
|
|
Have found that the problem is to determine the TYPE of the first DbCommand parameter, the first ?, if i use a constant value concatenated in the string problem goes away. Still my workaround is to create a stored procedure that receives the varchars and return varchar so i can keep using parameters. Yet, ugly bug. isnt there in ODBC provider. string sql = "SELECT DECRYPT_CHAR(field_encrypted, ?) <-- this ? apparently cant be resolved as SQL_TYPE and .Bind method fails. AS field_decrypted" + " FROM some_table WHERE id = 48084"; snip. _______________________________________________ Informix-list mailing list Informix-list (AT) iiug (DOT) org http://www.iiug.org/mailman/listinfo/informix-list |
#4
| |||
| |||
|
|
Is this the Informix SQLI driver or the "Universal" DRDA driver? Art Art S. Kagel Advanced DataTools (www.advancedatatools.com) Blog:http://informix-myview.blogspot.com/ Disclaimer: Please keep in mind that my own opinions are my own opinions and do not reflect on my employer, Advanced DataTools, the IIUG, nor any other organization with which I am associated either explicitly, implicitly, or by inference. *Neither do those opinions reflect those of other individuals affiliated with any entity with which I am affiliated nor those of the entities themselves. On Tue, Jan 3, 2012 at 9:00 AM, eferreyra <eferre... (AT) gmail (DOT) com> wrote: Have found that the problem is to determine the TYPE of the first DbCommand parameter, the first ?, if i use a constant value concatenated in the string problem goes away. Still my workaround is to create a stored procedure that receives the varchars and return varchar so i can keep using parameters. Yet, ugly bug. isnt there in ODBC provider. *string sql = "SELECT DECRYPT_CHAR(field_encrypted, ?) * <-- this ? apparently cant be resolved as SQL_TYPE and .Bind method fails. * AS field_decrypted" + * * * * * * * * * * " FROM some_table WHERE id = 48084"; snip. _______________________________________________ Informix-list mailing list Informix-l... (AT) iiug (DOT) org http://www.iiug.org/mailman/listinfo/informix-list |
#5
| |||
| |||
|
|
Hi Art. Informix SQLI driver IBM Informix Client SDK 3.50.TC4DE (same problem with 3.70.TC3.WIN) On 3 ene, 11:39, Art Kagel <art.ka... (AT) gmail (DOT) com> wrote: Is this the Informix SQLI driver or the "Universal" DRDA driver? Art Art S. Kagel Advanced DataTools (www.advancedatatools.com) Blog:http://informix-myview.blogspot.com/ Disclaimer: Please keep in mind that my own opinions are my own opinions and do not reflect on my employer, Advanced DataTools, the IIUG, nor any other organization with which I am associated either explicitly, implicitly, or by inference. Neither do those opinions reflect those of other individuals affiliated with any entity with which I am affiliated nor those of the entities themselves. On Tue, Jan 3, 2012 at 9:00 AM, eferreyra <eferre... (AT) gmail (DOT) com> wrote: Have found that the problem is to determine the TYPE of the first DbCommand parameter, the first ?, if i use a constant value concatenated in the string problem goes away. Still my workaround is to create a stored procedure that receives the varchars and return varchar so i can keep using parameters. Yet, ugly bug. isnt there in ODBC provider. string sql = "SELECT DECRYPT_CHAR(field_encrypted, ?) <-- this ? apparently cant be resolved as SQL_TYPE and .Bind method fails. AS field_decrypted" + " FROM some_table WHERE id = 48084"; snip. _______________________________________________ Informix-list mailing list Informix-l... (AT) iiug (DOT) org http://www.iiug.org/mailman/listinfo/informix-list _______________________________________________ Informix-list mailing list Informix-list (AT) iiug (DOT) org http://www.iiug.org/mailman/listinfo/informix-list |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
Is this the Informix SQLI driver or the "Universal" DRDA driver? Art Art S. Kagel Advanced DataTools (www.advancedatatools.com) Blog:http://informix-myview.blogspot.com/ Disclaimer: Please keep in mind that my own opinions are my own opinions and do not reflect on my employer, Advanced DataTools, the IIUG, nor any other organization with which I am associated either explicitly, implicitly, or by inference. Neither do those opinions reflect those of other individuals affiliated with any entity with which I am affiliated nor those of the entities themselves. On Tue, Jan 3, 2012 at 9:00 AM, eferreyra <eferre... (AT) gmail (DOT) com> wrote: Have found that the problem is to determine the TYPE of the first DbCommand parameter, the first ?, if i use a constant value concatenated in the string problem goes away. Still my workaround is to create a stored procedure that receives the varchars and return varchar so i can keep using parameters. Yet, ugly bug. isnt there in ODBC provider. string sql = "SELECT DECRYPT_CHAR(field_encrypted, ?) <-- this ? apparently cant be resolved as SQL_TYPE and .Bind method fails. AS field_decrypted" + " FROM some_table WHERE id = 48084"; snip. _______________________________________________ Informix-list mailing list Informix-l... (AT) iiug (DOT) org http://www.iiug.org/mailman/listinfo/informix-list |
#8
| |||
| |||
|
#9
| |||
| |||
|
#10
| |||
| |||
|
|
Thanks Raj, i was using 3.70 until i unistall to try 3.50 and see if problem goes away, buy yet in both always using IBM.Data.Informix provider. Questions: with this driver and DRDA protocol: Is other provider ? what is his name ? there is any pdf with the reference ? I have: IBM Informix .NET Provider Reference Guide 30.pdf There is anything to change in the server to suport DRDA or it comes built in and working ? (IDS 11.5x and later) There is any technical pdf about DRDA ? This fixes the issues of adding the provider to the several machine.configs of different frameworks? It still comes with ODBC driver named: IBM INFORMIX ODBC DRIVER ? can we make the ODBC driver work with DRDA ? Thanks, ill start another thread with more questions. Enrique _______________________________________________ Informix-list mailing list Informix-list (AT) iiug (DOT) org http://www.iiug.org/mailman/listinfo/informix-list |
![]() |
| Thread Tools | |
| Display Modes | |
| |