Search Postgresql Archives

Re: libpq prepared statement insert null for foreign key

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

 



On 3/9/20 5:00 PM, Ted Toth wrote:
I tries setting the parameter for the foreign NULL:
params[i] = NULL;

I think you will need to show the code previous to the above.


and I get a 'Key not present in table ...' error. How do I insert a record where I don't have a foreign key yet?

Ted


--
Adrian Klaver
adrian.klaver@xxxxxxxxxxx





[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