flush
[m6w6/pq-gateway] / lib / pq / Query / Writer.php
index 55cb5a2089cfc1a5102b4465fe2b24205bd01dcd..fd5e51aab692e42ec3995869b9321e863a645053 100644 (file)
@@ -5,7 +5,7 @@ namespace pq\Query;
 /**
  * A very simple query writer used by \pq\Gateway
  */
 /**
  * A very simple query writer used by \pq\Gateway
  */
-class Writer
+class Writer implements WriterInterface
 {
        /**
         * @var string
 {
        /**
         * @var string
@@ -139,6 +139,6 @@ class Writer
         * @return \pq\Result
         */
        function exec(\pq\Connection $c) {
         * @return \pq\Result
         */
        function exec(\pq\Connection $c) {
-               return $c->execParams($this, $this->params, $this->types);
+               return $c->execParams($this, $this->getParams(), $this->getTypes());
        }
 }
        }
 }