Wrong results with revDatabaseColumnNamed

Creating desktop or client-server database solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
D4vidrim
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 61
Joined: Fri May 31, 2013 9:32 am

Wrong results with revDatabaseColumnNamed

Post by D4vidrim » Fri Jun 07, 2013 8:14 pm

I'd like to ask about a problem I'm having with LiveCode Community Edition.

I make a database connection to the oracle DB we have in our company, via ODBC.
But I think there is some kind of bug in this function: revDatabaseColumnNamed

If I use this query

put "SELECT amc01_id_elab as amc01_id_elab FROM amc01_avvio" into sqlQuery

where this table amc01_avvio has only one column called amc01_id_elab, with only one record (32)


I get "3" as a result of the query. (first char of the result, while I should get 32)


BUT if I use this query:

put "SELECT 'id_' || amc01_id_elab as amc01_id_elab FROM amc01_avvio" into sqlQuery

I get 'id_32' as a result of the query. (which is correct)


It is like in some occasions, I only get the first char of the result, instead of getting the full value.

I've read on the forum that the same problem has happened before:
http://forums.runrev.com/phpBB2/viewtop ... med#p21355

But I have no idea how to solve it.

Thanks for any suggestions!

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Wrong results with revDatabaseColumnNamed

Post by Mark » Sun Jun 09, 2013 3:01 pm

Hi,

I don't see what this problem has to do with revDatabaseColumnNamed.

Make sure that your database returns plain ASCII text. That should work. If not, please post the LiveCode syntax used to retrieve the data.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply