On Mon, 29 Oct 2012 16:07:56 +0200 Timo Teras timo.teras@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