Skip to content
This repository was archived by the owner on Sep 28, 2022. It is now read-only.

Bugfix in getMetaData #17

Merged
merged 1 commit into from
Apr 7, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions swoole_postgresql_coro.cc
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,6 @@ static int meta_data_result_parse(pg_object *object)
{

int i, num_rows;
zval elem;
PGresult *pg_result;
zend_bool extended=0;
pg_result =PQgetResult(object->conn);
Expand All @@ -501,9 +500,12 @@ static int meta_data_result_parse(pg_object *object)
zval return_value;
array_init(&return_value);
zval * retval = NULL;
array_init(&elem);

for (i = 0; i < num_rows; i++)
{
zval elem;
array_init(&elem);

object->result = pg_result;
char *name;
/* pg_attribute.attnum */
Expand Down