Subversion-Projekte lars-tiefland.ci

Revision

Revision 2049 | Revision 2242 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 2049 Revision 2107
Zeile 914... Zeile 914...
914
		// even if the queries produce a successful result.
914
		// even if the queries produce a successful result.
915
		$this->_trans_failure = ($test_mode === TRUE);
915
		$this->_trans_failure = ($test_mode === TRUE);
Zeile 916... Zeile 916...
916
 
916
 
917
		if ($this->_trans_begin())
917
		if ($this->_trans_begin())
-
 
918
		{
918
		{
919
			$this->_trans_status = TRUE;
919
			$this->_trans_depth++;
920
			$this->_trans_depth++;
920
			return TRUE;
921
			return TRUE;
Zeile 921... Zeile 922...
921
		}
922
		}
Zeile 1042... Zeile 1043...
1042
	 * @param	string	An SQL query string
1043
	 * @param	string	An SQL query string
1043
	 * @return	bool
1044
	 * @return	bool
1044
	 */
1045
	 */
1045
	public function is_write_type($sql)
1046
	public function is_write_type($sql)
1046
	{
1047
	{
1047
		return (bool) preg_match('/^\s*"?(SET|INSERT|UPDATE|DELETE|REPLACE|CREATE|DROP|TRUNCATE|LOAD|COPY|ALTER|RENAME|GRANT|REVOKE|LOCK|UNLOCK|REINDEX)\s/i', $sql);
1048
		return (bool) preg_match('/^\s*"?(SET|INSERT|UPDATE|DELETE|REPLACE|CREATE|DROP|TRUNCATE|LOAD|COPY|ALTER|RENAME|GRANT|REVOKE|LOCK|UNLOCK|REINDEX|MERGE)\s/i', $sql);
1048
	}
1049
	}
Zeile 1049... Zeile 1050...
1049
 
1050
 
Zeile 1050... Zeile 1051...
1050
	// --------------------------------------------------------------------
1051
	// --------------------------------------------------------------------
Zeile 1171... Zeile 1172...
1171
	}
1172
	}
Zeile 1172... Zeile 1173...
1172
 
1173
 
Zeile 1173... Zeile 1174...
1173
	// --------------------------------------------------------------------
1174
	// --------------------------------------------------------------------
1174
 
1175
 
1175
	/**
1176
	/**
1176
	 * Platform-dependant string escape
1177
	 * Platform-dependent string escape
1177
	 *
1178
	 *
1178
	 * @param	string
1179
	 * @param	string
1179
	 * @return	string
1180
	 * @return	string
1180
	 */
1181
	 */
1181
	protected function _escape_str($str)
1182
	protected function _escape_str($str)
1182
	{
1183
	{
Zeile 1183... Zeile 1184...
1183
		return str_replace("'", "''", remove_invisible_characters($str));
1184
		return str_replace("'", "''", remove_invisible_characters($str, FALSE));
Zeile 1184... Zeile 1185...
1184
	}
1185
	}