Changeset 447 for trunk/Common/Database.php
- Timestamp:
- Oct 16, 2012, 8:26:33 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Database.php
r438 r447 88 88 { 89 89 $Name .= ',`'.$Key.'`'; 90 if(!in_array($Value, $this->Functions)) $Value = $this->PDO->quote($Value); 90 if(!in_array($Value, $this->Functions)) 91 { 92 if($Value == NULL) $Value = 'NULL'; 93 else $Value = $this->PDO->quote($Value); 94 } 91 95 $Values .= ','.$Value; 92 96 } … … 102 106 foreach($Data as $Key => $Value) 103 107 { 104 if(!in_array($Value, $this->Functions)) $Value = $this->PDO->quote($Value); 108 if(!in_array($Value, $this->Functions)) 109 { 110 if($Value == NULL) $Value = 'NULL'; 111 else $Value = $this->PDO->quote($Value); 112 } 105 113 $Values .= ', `'.$Key.'`='.$Value; 106 114 } … … 115 123 foreach($Data as $Key => $Value) 116 124 { 117 if(!in_array($Value, $this->Functions)) $Value = $this->PDO->quote($Value); 125 if(!in_array($Value, $this->Functions)) 126 { 127 if($Value == NULL) $Value = 'NULL'; 128 else $Value = $this->PDO->quote($Value); 129 } 118 130 $Name .= ',`'.$Key.'`'; 119 131 $Values .= ','.$Value;
Note:
See TracChangeset
for help on using the changeset viewer.