Commits

Phil Sturgeon committed de6a34e

Better potential fix for escaping MySQL keywords with backticks on insert/update.

Comments (0)

Files changed (1)

system/database/DB_active_rec.php

 			}
 			else
 			{
-				$this->ar_set[$this->_protect_identifiers($k)] = $this->escape($v);
+				$this->ar_set[$this->_protect_identifiers($k, FALSE, TRUE)] = $this->escape($v);
 			}
 		}
 
 				$this->ar_set[] = array();
 				return;
 			}
-		
+
 			ksort($row); // puts $row in the same order as our keys
 
 			if ($escape === FALSE)