[SR-Users] db_sqlite bugs

Timo Teras timo.teras at iki.fi
Mon Oct 29 20:07:51 CET 2012


On Mon, 29 Oct 2012 16:07:56 +0200 Timo Teras <timo.teras at iki.fi> wrote:

> I guess we should first try decltype if available and fall back to
> first row column type. However, this will fail too if the first row
> has NULL value for the column.
> 
> The fundamental problem is that Kamailio DB API expects the driver to
> return stored type - which on sqlite is not fixed.
> 
> Will try to get something sketched up soonish.

Can you try the attached patch if it fixes it? I compile tested it
only, but I believe this is the proper thing to do.

Thanks,
 Timo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sqlite-computed-col-fix.patch
Type: text/x-patch
Size: 1340 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20121029/8cc6ae0c/attachment.bin>


More information about the sr-users mailing list