ado2000
Posts: 8
|
| Posted: 09/05/2008, 5:15 AM |
|
Hi all,
i'm facing a problem with mysql, when an error happen, i'm not able to intercept the error.
i use this portion of code
$result = $this->db->query($query);
if($this->db->Errno > 0){
if($this->db->Errno == 1062){
$this->addError("err_import_email_duplicated", $email, $this->db->Errno." ".$this->db->Error);
}else{
$this->addError("err_import_email_save_email", $email, $this->db->Errno." ".$this->db->Error." ".$query);
}
$this->notImportedEmail++;
}
I'm using codecharge studio 4.01.00.06
thanks
Giovanni
|
 |
 |
ado2000
Posts: 8
|
| Posted: 09/11/2008, 8:00 AM |
|
no one can help ?
Thanks,
Giovanni
|
 |
 |
ado2000
Posts: 8
|
| Posted: 09/11/2008, 8:23 AM |
|
i solved the problem,
i modified the file db_adapter.php
function query($SQL) {
$this->LastSQL = $SQL;
$this->NextRecord = array();
//*********************************
// modifica per restituire l'errore
//*********************************
$ret = $this->Provider->query($SQL);
$this->Errno = $this->Provider->Errno;
$this->Error = $this->Provider->Error;
return $ret;
// return $this->Provider->query($SQL);
//*********************************
// modifica per restituire l'errore
//*********************************
}
|
 |
 |
wkempees
Posts: 1679
|
| Posted: 09/11/2008, 12:36 PM |
|
MB: Have you contacted support: visit http://support.yessoftware.com.
It might be in teresting to get their opinion about your solution.
Could lead to either a pointer as to how to do this,
or your solution to be adapted.
Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
 |
 |
ado2000
Posts: 8
|
| Posted: 09/12/2008, 8:00 AM |
|
I'll do it
Thanks
Giovanni
|
 |
 |
|