On 2015-07-21 15:00, Gabriele Bulfon wrote:
sql=SELECT `id` FROM `attachment` WHERE `sig`=? AND `ptr`=0 AND
`size`=?

ok, then check the following code if it has the proper number of
variable binding.

Btw. it's enough to answer to the list, otherwise I get each of your
emails twice.

Janos

----------------------------------------------------------------------------------

Da: Janos SUTO <[email protected]>
A: Piler User <[email protected]>
Data: 21 luglio 2015 14.51.29 CEST
Oggetto: Re: pilerimport mysql_stmt_execute errors on
XStreamOS/illumos

try the following:

edit mysql.c, and locate the prepare_sql_statement() function. Then
add
the following to the beginning:

syslog(LOG_PRIORITY, "%s: sql=%s", sdata->ttmpfile, s);

then recompile, and run it again. When you get the
mysql_stmt_execute
error, look for the previous syslog entry, it will reveal the
problematic
sql query.

Janos

On 2015-07-21 14:10, Gabriele Bulfon wrote:
not that easy, as it's the first time I get into mysql C calls.

would you give some clues as to how to change mysql.c or import.c
or
pilerimport.c to debug some stuff?



Reply via email to