[Libreoffice-bugs] [Bug 50849] SIGSEGV: ODBC to PostgreSQL, renaming column in SELECT list

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jul 4 19:58:34 CEST 2012


https://bugs.freedesktop.org/show_bug.cgi?id=50849

Lionel Elie Mamane <lionel at mamane.lu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |NOTOURBUG

--- Comment #9 from Lionel Elie Mamane <lionel at mamane.lu> 2012-07-04 10:58:34 PDT ---
(In reply to comment #7)
> Frankly, I suspect an ODBC driver bug.

The segfault is at line:

    if (SQL_SUCCESS == ret && 0 ==
QR_get_num_total_tuples(SC_get_Result(stmt))) 

in functtion

RETCODE        SQL_API
SQLSpecialColumns(HSTMT StatementHandle,
                  SQLUSMALLINT IdentifierType, SQLCHAR *CatalogName,
                  SQLSMALLINT NameLength1, SQLCHAR *SchemaName,
                  SQLSMALLINT NameLength2, SQLCHAR *TableName,
                  SQLSMALLINT NameLength3, SQLUSMALLINT Scope,
                  SQLUSMALLINT Nullable)

in file odbcapi.c (in pgodbc sources).

In statement.h:#define SC_get_Result(a)  (a->result)

But:

(gdb) print stmt->result
$4 = (QResultClass *) 0x0


Here's your NULL pointer!

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Libreoffice-bugs mailing list