Can't pass array function result as parameter

Mark Wieder mwieder at ahsoftware.net
Sat Apr 1 20:10:40 EST 2006


James-

Saturday, April 1, 2006, 8:40:29 AM, you wrote:

> library I'm testing or in the Rev database library.  First, some of
> the elements in the array returned from dbGetCurrentRecord were empty
> and I was passing those empty elements back to dbInsert.  This causes
> the insertion to fail with a MySQL syntax error, although I haven't
> completely figured out why.

You might make sure that the MySQL database fields that you're
attempting to fill can accept null values. If not then you will (and
should) get an error. It won't be a revdb error, but an error returned
from the database itself, which might explain why it's getting past
your second level error checking.

-- 
-Mark Wieder
 mwieder at ahsoftware.net




More information about the use-livecode mailing list