I think I found a bug in ADO.NET driver for SA 11. if I try to execute this code:
Works fine. But if I change to use parameters, I get this error: "iAnywhere.Data.SQLAnywhere.SAException: Cannot convert 'my string' to a int at iAnywhere.Data.SQLAnywhere.SACommand._ExecuteReader(CommandBehavior commandBehavior, Boolean isExecuteScalar, Boolean isBeginExecuteReader) at iAnywhere.Data.SQLAnywhere.SACommand.ExecuteScalar() " In Interactive SQL, this command executes fine. If I change sql command to "select 'my ' || 'string' from DUMMY', ADO.NET executes fine too. It's an bug or an expected behavor? I'm using sa 11.0.1.2355 |
New question created for this. http://sqlanywhere-forum.sap.com/questions/267/bug-in-sa-11-net-driver-2 |