[OpenSIPS-Devel] Understanding MySQL prepared statements: no "SET @variable = XXX" query?

Iñaki Baz Castillo ibc at aliax.net
Tue Sep 8 13:19:00 CEST 2009


2009/9/8 Bogdan-Andrei Iancu <bogdan at voice-system.ro>:
> Hi Iñaki,
>
> Hmm, hard to tell - what opensips does, is simply to use the API
> functions  from mysql libraries - these functions are doing the actually
> mysql commands (the ones you see on the server side).
>
> I guess the libmysqlclient is handling this references to the prepared
> statements in a totally transparent way for the application using the lib.
>
> On the other hand I never used prepared statements in other way than via
> the libmysqlclient.

ok. I'm using prepared statements "by hands" and I must use "SET
@var=XXX" query in order it to work, so it's really strange for me how
the libmysql does it... I must searh more :)

Thanks.

-- 
Iñaki Baz Castillo
<ibc at aliax.net>



More information about the Devel mailing list