ok i set debug to 0. before doing that cake threw those errors
Warning (2): pg_query() [function.pg-query]: Query failed: FEHLER:
NULL-Wert in Spalte »title« verletzt Not-Null-Constraint [CORE\cake
\libs\model\datasources\dbo\dbo_postgres.php, line 167]
Warning (512): SQL Error: FEHLER: NULL-Wert in Spalte »title«
verletzt Not-Null-Constraint [CORE\cake\libs\model\datasources
\dbo_source.php, line 673]
Query: INSERT INTO "books" ("fk_user_id", "hash", "created") VALUES
('761966711', '1', 'bc1c6d1df862ef59aaa1019b325eae49ad98910',
'2012-02-11 17:52:29')
{"successful":false}
now setting debug to "0" the SQL Error wont show up, but the pg_query
still does. so i guess debug wont apply to that kind of error from
postgres..
or am i getting sth wrong?
thx :)
On 11 Feb., 10:34, Tomfox Wiranata <[email protected]> wrote:
> thx marcus
>
> i violate a not null constraint. but did it on purpose to create a
> test case for failed saving.
> i set debug to 0 right before $this->renderjson... but it affects
> nothing...maybe i did it wrong?
>
> thx :)
>
> On Feb 11, 3:17 am, Marcus James <[email protected]> wrote:
>
>
>
>
>
>
>
> > Is your debug mode set to 0 ? Try with setting it to 0 .
>
> > Regarding the errors , it would be nice if you post what errors you are
> > getting
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php