From: Aerendir <adamo.cre...@gmail.com>
Date: Sat, 21 Jul 2012 11:37:59 -0700 (PDT)
Local: Sat, Jul 21 2012 2:37 pm
Subject: Support IGNORE clause for INSERT
Hi at all, I'm developing an app using Joomla! Platform 12.1 and i need to use IGNORE Actually, the framework doesn't support the use of this clause, but, If i'm not wrong it could be sufficient to edit the method insert of the Now the function is this: *public function **insert*($table, $incrementField*=**false*) *return *$this; } I think (but i could be wrong! I don't yet fully know the logic of the entire database package) that the function could be rewrote in this way: *public function **insert*($table, $incrementField*=**false*, $ignore=*false *if*($ignore) } *else *{ $this*->*insert *= new *JDatabaseQueryElement('INSERT INTO', $table); } $this*->*autoIncrementField *= *$incrementField; *return *$this; } What do you think about? You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||