X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fpq-gateway;a=blobdiff_plain;f=lib%2Fpq%2FGateway%2FCell.php;h=ba58404a7c190c261cb82c78ec2e2a42240147c5;hp=730efb07bc4a36c1058bd77a3878a5bd6e755d85;hb=0e684b0140154ebc8a304670c0349da840a16ad2;hpb=01bd45d05ce58796db7540d60671b8cff5d46bff diff --git a/lib/pq/Gateway/Cell.php b/lib/pq/Gateway/Cell.php index 730efb0..ba58404 100644 --- a/lib/pq/Gateway/Cell.php +++ b/lib/pq/Gateway/Cell.php @@ -64,6 +64,8 @@ class Cell */ function mod($data, $op = null) { if (!($this->data instanceof Expr)) { + $this->data = new Expr($this->name); + /* if (!isset($this->data)) { $this->data = new Expr($this->name); } elseif (is_numeric($this->data)) { @@ -71,6 +73,7 @@ class Cell } else { $this->data = new Expr("%s", $this->row->getTable()->getConnection()->quote($this->data)); } + */ } if ($data instanceof Expr) {