Re: sqlite_fdw crashes & errors - Mailing list pgsql-admin

From Andrew Gierth
Subject Re: sqlite_fdw crashes & errors
Date
Msg-id 87sh27hrxj.fsf@news-spur.riddles.org.uk
Whole thread Raw
In response to Re: sqlite_fdw crashes & errors  (Mariel Cherkassky <mariel.cherkassky@gmail.com>)
Responses Re: sqlite_fdw crashes & errors
List pgsql-admin
>>>>> "Mariel" == Mariel Cherkassky <mariel.cherkassky@gmail.com> writes:

 >> #2  0x00007f11c1800e24 in sqlitefdw_report_error (elevel=<value optimized
 >> out> , stmt=0x20013f8, conn=<value optimized out>, sql=0x0, rc=1) at
 >> connection.c:288

This is a bug in sqlite_fdw - it's assuming it can use sqlite3_sql to
get the sql source text back from a statement, but that's only true when
the statement was prepared using a different API than the one actually
being used. So sqlite3_sql ends up returning null, and pstrdup naturally
crashes on that.

-- 
Andrew (irc:RhodiumToad)


pgsql-admin by date:

Previous
From: Mariel Cherkassky
Date:
Subject: Re: sqlite_fdw crashes & errors
Next
From: Mariel Cherkassky
Date:
Subject: Re: sqlite_fdw crashes & errors