X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fpq-gateway;a=blobdiff_plain;f=lib%2Fpq%2FQuery%2FWriter.php;h=6e069450d046332460cae6becb0b71444186ed6d;hp=fd5e51aab692e42ec3995869b9321e863a645053;hb=dc87da9c4ec52918e34f2e43eac3014f0f99a8bc;hpb=89caabf7e3ebc62190fccba97e3bc11f7f32b58c diff --git a/lib/pq/Query/Writer.php b/lib/pq/Query/Writer.php index fd5e51a..6e06945 100644 --- a/lib/pq/Query/Writer.php +++ b/lib/pq/Query/Writer.php @@ -94,7 +94,7 @@ class Writer implements WriterInterface * @return string */ function param($param, $type = null) { - if ($param instanceof \pq\Gateway\Cell) { + if ($param instanceof ExpressibleInterface) { $param = $param->get(); } if ($param instanceof Expr) { @@ -132,13 +132,4 @@ class Writer implements WriterInterface } return $this; } - - /** - * Execute the query through \pq\Connection::execParams($this, $this->params, $this->types) - * @param \pq\Connection $c - * @return \pq\Result - */ - function exec(\pq\Connection $c) { - return $c->execParams($this, $this->getParams(), $this->getTypes()); - } }