[asterisk-users] Return variables from func_odbc calls?

Sherwood McGowan sherwood.mcgowan at gmail.com
Wed Jan 26 07:19:46 CST 2011


On Wed, Jan 26, 2011 at 7:01 AM, Paul Belanger <pabelanger at digium.com> wrote:
> On 11-01-26 04:56 AM, Tilghman Lesher wrote:
>> As far as LAST_INSERT_ID, that is a MySQL-ism that is not supported,
>> since it is not portable across database types.
>>
> While, LAST_INSERTID(); is a MySQL-ism, I've been able to use it with
> func_ODBC.  Of cource, my database is MySQL and this function would not
> work on anything else.
>
>
> [CREATECALL]
> dsn=Example
> writesql=INSERT INTO x (y) VALUES (z)
> readsql=SELECT LAST_INSERT_ID();
>
> --
> Paul Belanger
> Digium, Inc. | Software Developer
> twitter: pabelanger | IRC: pabelanger (Freenode)
> Check us out at: http://digium.com & http://asterisk.org
>

Hey, thanks for the tip Paul!



More information about the asterisk-users mailing list