Is this query suposed to error?
pg_query("INSERT INTO tr_projects() VALUES()");
Or under what circumstances will it error?
Thanks
Will this error?
Moderator: General Moderators
-
Mark Baker
- Forum Regular
- Posts: 710
- Joined: Thu Oct 30, 2008 6:24 pm
Re: Will this error?
I'd expect it to error under every circumstance, with the sole possible exception of every column in the tr_projects table having a default or an autoincremented field, or being populated by a triggered function.
Re: Will this error?
is there any way to check if the db is set to make default values?
I didnt write this code, and its my first time working with pgsql, so im a but clueless.
Thanks
I didnt write this code, and its my first time working with pgsql, so im a but clueless.
Thanks