mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
Implementing raw query+execute
This commit is contained in:
parent
7307860d07
commit
bc217f5490
|
|
@ -891,4 +891,12 @@ class Builder extends BuilderAbstract
|
|||
{
|
||||
return clone($this);
|
||||
}
|
||||
|
||||
public function execute()
|
||||
{
|
||||
$sth = $this->connection->con->prepare($this->toSQL());
|
||||
$sth->execute();
|
||||
|
||||
return $sth;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ class Grammar extends GrammarAbstract
|
|||
$components = $this->selectComponents;
|
||||
break;
|
||||
case QueryType::RAW:
|
||||
return $query->raw;
|
||||
return [$query->raw];
|
||||
break;
|
||||
default:
|
||||
throw new \InvalidArgumentException('Unknown query type.');
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user