]> git.nbdom.net Git - nb.git/commitdiff
lib/php/db/field.php
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Fri, 11 Oct 2024 09:24:07 +0000 (11:24 +0200)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Fri, 11 Oct 2024 09:24:07 +0000 (11:24 +0200)
lib/php/db/field.php

index bbd701b79f6c0c3aba3f6fa3d29ade75f45c9905..686f31003b73d57ed84b24c01328c235588a6cc0 100644 (file)
@@ -381,8 +381,6 @@ return false;
   public function bindParam(&$sth,$value,$name=null) {
     # See: http://php.net/manual/en/pdostatement.bindparam.php
     if ($name === null) $name = ':'.$this->name;
-#debug($this->name . " | $name | $value | $this->type | " .  $this->size()."<br/>");
-# NB 11.04.16     if (strpos($this->type,'float') !== false) {
     if ($this->numeric() and strpos($this->type,'int') === false) {
       $value = strval($value);
       return $sth->bindParam($name, $value, PDO::PARAM_STR);
@@ -391,7 +389,6 @@ return false;
     # Passing null to parameter #4 ($maxLength) of type int is deprecatedassing null to parameter #4 ($maxLength) of type int is deprecated
     if ($size === null) $size = 0;
     return $sth->bindParam($name, $value, $this->type2pdo($this->type), $size);
-// NB 27.07.15     return $sth->bindParam($name, $value, $this->type2pdo($value));
   }
 
   public function out($value,$html_escape=false) {