https://issues.apache.org/bugzilla/show_bug.cgi?id=56379

            Bug ID: 56379
           Summary: Number of columns in the results returned from pgsql
                    connection is zero
           Product: Apache httpd-2
           Version: 2.4.9
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_lua
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 31502
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=31502&action=edit
httpd-2.4.9/modules/lua/lua_dbd.c patch

Mod_dbd, when coupled with mod_lua, works fine to return pgsql connections. 
Mod_lua's "select" or "prepare / selection" can return the correct number of
rows.  However, the number of columns is always zero.

Note that "cols" from Line 333 seems to return 0 regardless of the number of
columns in the SELECT SQL statement.  Thus, the if statement at Line 335 always
returns false.

The attached patch seems to fix this issue for the pgsql connections.  I've not
tested if this fix causes issues in other database connections.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to