Search Postgresql Archives

Re: A cronjob for copying a table from Oracle

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





2010/12/10 Adrian Klaver <adrian.klaver@xxxxxxxxx>
On 12/10/2010 09:45 AM, Dmitriy Igrishin wrote:
Huh! Yes, indeed ! But how is it possible ?! I see
           ÂEMAIL    = _EMAIL,
           ÂEMAILID   = _EMAILID,

rather than

           ÂEMAIL    = $7,
           ÂEMAILID   = $8,

in the function definition...

My guess the reversal is taking place in the PHP code. The table definition and the argument list to the Pg function have one order for emailid,email and the update and insert statements have another; email,emailid. ÂI would guess that the PHP is building the row variables using the SQL statement order and than passing that to the Pg function which has a different order.
Yeah, thats why I've asked the OP to post SQL with call of the function (in PHP).


--
Adrian Klaver
adrian.klaver@xxxxxxxxx



--
// Dmitriy.



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux