Skip to content

Return true in ExecuteSQL could be a confusing point #36

Open
@hellomaya

Description

@hellomaya

if($this->records > 0){
$this->ArrayResults();
return $this->arrayedResult;
}else{
return true;
}

When we use ExecuteSQL, commonly here we can't use :

$ret = $db->ExecuteSQL (....);
if (empty($ret)) {
}

coz it's always "TRUE", so you don't know it's empty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions