Skip to content
Browse files

Return column names as values. Refs gh-83

  • Loading branch information...
1 parent 8930527 commit 4025c0081662b39992f0d4cad2cb7a1323911699 @piotras committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 php_midgard_query_selectors.c
View
2 php_midgard_query_selectors.c
@@ -236,7 +236,7 @@ static PHP_METHOD(midgard_query_result, get_column_names)
guint i;
for (i = 0; i < n_names; i++) {
- add_assoc_string(return_value, (gchar *)names[i], "", 1);
+ add_index_string(return_value, i, (gchar *)names[i], 1);
}
g_free(names);

0 comments on commit 4025c00

Please sign in to comment.
Something went wrong with that request. Please try again.