Re: libpq prepared statement insert null for foreign key

2020-03-09 Thread Adrian Klaver
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 --

libpq prepared statement insert null for foreign key

2020-03-09 Thread Ted Toth
I tries setting the parameter for the foreign NULL: params[i] = NULL; 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