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 153... Zeile 153...
153
			$field_str = '';
153
			$field_str = '';
154
			$is_int = array();
154
			$is_int = array();
155
			while ($field = $query->result_id->fetch_field())
155
			while ($field = $query->result_id->fetch_field())
156
			{
156
			{
157
				// Most versions of MySQL store timestamp as a string
157
				// Most versions of MySQL store timestamp as a string
158
				$is_int[$i] = in_array(strtolower($field->type),
158
				$is_int[$i] = ($field->type & MYSQLI_TYPE_TINY)
-
 
159
						OR ($field->type & MYSQLI_TYPE_SHORT)
159
							array('tinyint', 'smallint', 'mediumint', 'int', 'bigint'), //, 'timestamp'),
160
						OR ($field->type & MYSQLI_TYPE_INT24)
160
							TRUE);
161
						OR ($field->type & MYSQLI_TYPE_LONG)
-
 
162
						OR ($field->type & MYSQLI_TYPE_LONGLONG);
Zeile 161... Zeile 163...
161
 
163
 
162
				// Create a string of field names
164
				// Create a string of field names
163
				$field_str .= $this->db->escape_identifiers($field->name).', ';
165
				$field_str .= $this->db->escape_identifiers($field->name).', ';
164
				$i++;
166
				$i++;