<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>29 Jul 2015 17:10:13 Z</lastBuildDate><pubDate>29 Jul 2015 14:30:00 Z</pubDate><description>This problem only occured in batch script .&#13;
for example , i made typo when i suppose to insert into tableA , i type tableB which is not exist.&#13;
&#13;
------------------------------------------------------------&#13;
example 1&#13;
&#13;
M_sql is string = [&#13;
delete from tableA where col1 = 1 ;&#13;
&#13;
insert into tableB (col1, col2) values (1, 'BBB');&#13;
&#13;
SELECT ROW_COUNT() ;&#13;
]&#13;
&#13;
&#13;
IF SQLExec(M_sql, M_QRY) = False THEN&#13;
SQLInfo()&#13;
Info("Error SQLExec " , SQL.MesError)&#13;
END&#13;
&#13;
-----------------------------------------------------------------------&#13;
example 2&#13;
&#13;
M_sql is string = [&#13;
insert into tableB (col1, col2) values (1, 'BBB');&#13;
&#13;
SELECT ROW_COUNT() ;&#13;
]&#13;
&#13;
&#13;
IF SQLExec(M_sql, M_QRY) = False THEN&#13;
SQLInfo()&#13;
Info("Error SQLExec " , SQL.MesError)&#13;
END&#13;
&#13;
&#13;
========================================================&#13;
&#13;
if tableB is not exist&#13;
&#13;
example1 , SQLExec() will still return true while example2 , SQLExec () will return false.&#13;
&#13;
how come? this is because SQLExec() return true/false of execution of the first script in the batch which in example1 is "delete from tableA where col1 = 1 ;"&#13;
&#13;
Solution? if you really need to run batch script , the solution is to create stored procedure .</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53317-wm20-android-mysql-bug-sqlexec-with-webservice/read.awp</link><title>[WM20 (android - Mysql)] Bug in SQLExec() with webservice</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>Willian Fernando</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53317-wm20-android-mysql-bug-sqlexec-with-webservice-53321/read.awp</comments><pubDate>29 Jul 2015 17:10:13 Z</pubDate><description>Hello ccc2. it would be nice if you had a name ....&#13;
&#13;
First I suggest that you run a sentence at a time, do not place all in on…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53317-wm20-android-mysql-bug-sqlexec-with-webservice-53321/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53317-wm20-android-mysql-bug-sqlexec-with-webservice-53321/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53317-wm20-android-mysql-bug-sqlexec-with-webservice/read.awp">[WM20 (android - Mysql)] Bug in SQLExec() with webservice</source><title>Re: [WM20 (android - Mysql)] Bug in SQLExec() with webservice</title></item></channel></rss>
