From: Nicolas Boisselier Date: Fri, 11 Oct 2024 09:24:07 +0000 (+0200) Subject: lib/php/db/field.php X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=4fc3c5ed9c0ad2946ab61bbfc50825b2090e0b2f;p=nb.git lib/php/db/field.php --- diff --git a/lib/php/db/field.php b/lib/php/db/field.php index bbd701b7..686f3100 100644 --- a/lib/php/db/field.php +++ b/lib/php/db/field.php @@ -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()."
"); -# 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) {