convert_parent_id_to_child_id [message #7253] |
Wed, 06 February 2019 14:18 |
pdv
Messages: 15 Registered: January 2019
|
Junior Member |
|
|
Hi,
I'm accessing some existing PostgreSQL databases on macos. Most of these have a primary key "id" whereas the foreign key is usually object_id; I know that it is preferred using the same name, but that's no option. Luckily include.library.inc contains a function convert_parent_id_to_child_id() to handle this particular case.
The function is called in std.table.class.inc, in the getData() function (line 2551 in the last version).
However for this to work properly the call to where2array($where, $this->pageno, false) a few lines higher should be called with the last parameter set to true.
Regards,
Patrick
|
|
|