Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » How To » convert_parent_id_to_child_id
convert_parent_id_to_child_id [message #7253] Wed, 06 February 2019 14:18 Go to previous message
pdv is currently offline  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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Multi servers and PostgreSQL
Next Topic: Check for empty $schema in dml.psql.class.inc
Goto Forum:
  


Current Time: Mon Jun 17 19:04:57 EDT 2024

Total time taken to generate the page: 0.00991 seconds