Page 1 of 1

.AsString Delphi 2009 direct mode

Posted: Fri 20 Mar 2009 17:05
by hannes_a
When I use a single select with a string param

Code: Select all

Query.sql.add('select * form tab where field = :field');
Query.parms[0].AsString := 'abc';
works with OCI properly but in direct mode it doesn't find the record :cry:

I found in direct mode

Code: Select all

Query.parms[0].AsAnsiString := 'abc';
helps, but I've thousands places in sourcecode to change, so it's no good workaround for me and I can't switch easy from 2007 to 2009

Is there a more elegant way, or do you solve this in next version, where I've not to change my sourcecode ?

Posted: Wed 25 Mar 2009 09:28
by Plash
We have reproduced this problem, and we are working on it. You will be notified when we fix the problem.

Posted: Thu 16 Apr 2009 08:50
by Plash
We have fixed this problem. The fix will be included in the next build of ODAC.

Posted: Wed 27 May 2009 13:43
by robert.wachtel
Plash wrote:We have fixed this problem. The fix will be included in the next build of ODAC.
I recently ran into the same problem. When do you plan to release the next build?

Posted: Thu 28 May 2009 06:35
by Plash
We have already released the new build.