You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2014/04/09 20:29:16 UTC
[Bug 56379] New: Number of columns in the results returned from
pgsql connection is zero
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: bugs@httpd.apache.org
Reporter: zhou.lixin@gmail.com
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org