QI fix for failed queries

This commit is contained in:
Ulf Gebhardt 2014-01-20 23:42:23 +01:00
parent 6ded7a05b3
commit e786f305b1
2 changed files with 2 additions and 4 deletions

View File

@ -26,8 +26,7 @@ class QP {
public static function QI($params,$params_mys = null){ public static function QI($params,$params_mys = null){
$qq = self::QQ($params,$params_mys); $qq = self::QQ($params,$params_mys);
return $qq->affectedRows() != 0; return $qq->affectedRows() != (0||null);}
}
//override this //override this
protected static function query(){ protected static function query(){
throw new \SYSTEM\LOG\ERROR('query function of your QP Class not overwritten!');} throw new \SYSTEM\LOG\ERROR('query function of your QP Class not overwritten!');}

View File

@ -25,8 +25,7 @@ class QQ {
return self::QQ()->next();} return self::QQ()->next();}
public static function QI($params,$params_mys = null){ public static function QI($params,$params_mys = null){
$qq = self::QQ($params,$params_mys); $qq = self::QQ($params,$params_mys);
return $qq->affectedRows() != 0; return $qq->affectedRows() != (0||null);}
}
//override this //override this
protected static function query(){ protected static function query(){
throw new \SYSTEM\LOG\ERROR('query function of your QQ Class not overwritten!');} throw new \SYSTEM\LOG\ERROR('query function of your QQ Class not overwritten!');}