pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #16494: cant use row['field name']
2+ messages / 2 participants
[nested] [flat]
* BUG #16494: cant use row['field name']
@ 2020-06-15 03:45 PG Bug reporting form <noreply@postgresql.org>
2020-06-15 07:11 ` Re: BUG #16494: cant use row['field name'] Pavel Stehule <pavel.stehule@gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: PG Bug reporting form @ 2020-06-15 03:45 UTC (permalink / raw)
To: pgsql-bugs@lists.postgresql.org; +Cc: preetha@tyk.jp
The following bug has been logged on the website:
Bug reference: 16494
Logged by: Preeth TYK
Email address: preetha@tyk.jp
PostgreSQL version: 12.3
Operating system: Windows
Description:
I am using pgsql with php. When trying to echo data in tables using
row['field name'] , it is returning error. I am currently using
row['row_number'] which is really inconvenient.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #16494: cant use row['field name']
2020-06-15 03:45 BUG #16494: cant use row['field name'] PG Bug reporting form <noreply@postgresql.org>
@ 2020-06-15 07:11 ` Pavel Stehule <pavel.stehule@gmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: Pavel Stehule @ 2020-06-15 07:11 UTC (permalink / raw)
To: preetha@tyk.jp, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Hi
po 15. 6. 2020 v 8:52 odesÃlatel PG Bug reporting form <
noreply@postgresql.org> napsal:
> The following bug has been logged on the website:
>
> Bug reference: 16494
> Logged by: Preeth TYK
> Email address: preetha@tyk.jp
> PostgreSQL version: 12.3
> Operating system: Windows
> Description:
>
> I am using pgsql with php. When trying to echo data in tables using
> row['field name'] , it is returning error. I am currently using
> row['row_number'] which is really inconvenient.
>
If it is an issue, then it is a PHP API issue. This is a PostgreSQL bug
list.
You wrote nothing about the API that you use. Probably it is an older PG
driver. a PDO driver works differently.
But I don't think so this is a bug. Building an int indexed array is faster
than building a string indexed array. This API is pretty old, and had
strong benefits on slower computers.
If you want different access, then you can you different API
https://www.php.net/manual/en/function.pg-fetch-assoc.php
https://www.php.net/manual/en/function.pg-fetch-array.php
https://www.php.net/manual/en/function.pg-fetch-object.php
Regards
Pavel Stehule
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2020-06-15 07:11 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-06-15 03:45 BUG #16494: cant use row['field name'] PG Bug reporting form <noreply@postgresql.org>
2020-06-15 07:11 ` Pavel Stehule <pavel.stehule@gmail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox