Re: array and revExecuteSQL

2019-05-16 Thread axwald via use-livecode
Hi. Paul Dupuis via use-livecode wrote > I believe you need to surround the placeholder with single quotes. Doesn't work, my LC doesn't do the replacement: > UPDATE `t_test` SET `Text` = ':11' WHERE `Nummer` = ':22'; and > UPDATE `t_test` SET `Text` = :'11' WHERE `Nummer` = :'22'; are sent to the

Re: array and revExecuteSQL

2019-05-15 Thread Bob Sneidar via use-livecode
I believe you need to surround the placeholder with single quotes. >> put "UPDATE `t_test` SET `Text` = ':11' WHERE `Nummer` = ':22';" into StrSQL Also you can lose the semicolon as LC will only execute one statement at a time. You cannot string statements. Bob S > On May 15, 2019, at 06:46

Re: array and revExecuteSQL

2019-05-15 Thread axwald via use-livecode
Hi, the notation for revExecuteSQL you mention only works with 1-digit numbers (in my LC 6.7.10). Named arrays and 2- or more digit entries don't work - LC doesn't translate 'em. You can easily check this with your favorite network sniffer: > put "bText" into myArr[11] > put "99" into myArr[22] >

Re: array and revExecuteSQL

2019-05-13 Thread Bob Sneidar via use-livecode
No because the array form uses a substitution method for SQL statements like "custom = ':1'" the :1 being replaced by the contents of tArray [1] when the SQL statement is assembled. I don't think you can use ":lattitude" in the select statement, but that would be an SQL limitation not an LC one.

array and revExecuteSQL

2019-05-08 Thread Ludovic THEBAULT via use-livecode
hello when you use array with revExecuteSQL like : revExecuteSQL, dbID, tSQL, "tarray" can we use array wth keys as text and not number : tarray["latitude"] vs tarray[1] i’ve some bug with first syntax. Thanks for your light ! ___ use-livecode mailin