(%. 1f ms raquo ;, $ span * 1000); :: sql ( $ this- gt; db_alias, $ span, $ this- gt; query , $ start_time, microtime (true)); (config :: get ( SQL_DEBUG_IN_FLOW ) || db :: $ debug_in_flow)
{$ this- gt; query. lt; br/ gt; raquo ;;
}
} (config :: get ( db_profiler ))
{
$ queries=(array) cache :: get ( db_profiler_queries );
$ queries [$ this- gt; statement] +=1; :: set ($ queries, 60 * 60 * 24 * 30, db_profiler_queries );
} $ this- gt; query_handle;
} function fetch_all ()
{
$ rows=array (); ($ row=mysql_fetch_assoc ($ this- gt; query_handle))
{
$ rows []=$ row;
} $ rows;
} function fetch_cols ()
{
$ rows=array (); ($ a=mysql_fetch_row ($ this- gt; query_handle))
{
$ rows []=$ a [0];
} $ rows;
} _ inner_execute ()
{
$ this- gt; query_handle=mysql_query ($ this- gt; query, $ this- gt; db_handle); (! $ this- gt; query_handle)
{
$ this- gt; error_code=mysql_errno ($ this- gt; db_handle);
$ this- gt; error_info=mysql_error ($ this- gt; db_handle);
$ this- gt; db- gt; error_code=$ this- gt; error_code;
$ this- gt; db- gt; error_info=$ this- gt; error_info;
$ log_line=$ this- gt; get_error_line ($ this- gt; db_alias); new Exception ( SQL Error. . $ log_line);
}
} _ cast_values ??()
{($ this- gt; params as $ key= gt; $ value)
{($ this- gt; param_types [$ key])
{SQL_PARAM_INT:
$ this- gt; paramsTemp [$ key]=$ this- gt; sqlInteger ($ this- gt; params [$ key]) ;; SQL_PARAM_ARRAY_INT :(! is_array ($ this- gt; params [$ key]))
{_ error ( Error cast values. Parameter must be an array. . $ this- gt; statement, E_USER_ERROR);
} ($ this- gt; params [$ key] as $ _key= gt; $ _value)
{
$ this- gt; paramsTemp [$ key] [$ _ key]=$ this- gt; sqlInteger ($ this- gt; params [$ key] [$ _ key]);
} (count ($ this- gt; paramsTemp [$ key]) gt; 0)
{
$ this- gt; paramsTemp [$ key]=implode (, raquo ;, $ this- gt; paramsTemp [$ key]);
}; SQL_PARAM_ARRAY_STR :(! is_array ($ this- gt; params [$ key]))
{( Error cast values. Parameter must be an array );
}
$ this- gt; paramsTemp [$ key]=array (); ($ this- gt; params [$ key] as $ _key= gt; $ _value)
{
$ this- gt; paramsTemp [$ key] [$ _ key]= . $ this- gt; sqlString ($ this- gt; params [$ key] [$ _ key]). raquo ;;
} (count ($ this- gt; paramsTemp [$ key]) gt; 0)
{
$ this- gt; paramsTemp [$ key]=implode (, raquo ;, $ this- gt; paramsTemp [$ key]);
}; SQL_PARAM_MATCH:
$ to_encode=array(laquo;-raquo;,laquo;~raquo;,laquo;*raquo;,laquo;+raquo;,laquo;lt;raquo;,laquo;gt;raquo;,laquo;(raquo;,laquo;)raquo;);
$ encoded=array(laquo;-raquo;,laquo;~raquo;,laquo;*raquo;,laquo;+raquo;,laquo;lt;raquo;,laquo;gt;raquo;,laquo;(raquo;,laquo;)raquo;);
$ dummyArray=split ( raquo ;, trim (str_replace ($ to_encode, $ encoded, $ this- gt; sqlString ($ this- gt; params [$ key]))));
$ this- gt; paramsTemp [$ key]= + .implode ( * + raquo ;, $ dummyArray). * raquo ;;; SQL_PARAM_STR::( isset ($ this- gt; paramLengths [$ key]))
{
$ this- gt; paramsTemp [$ key]=mb_substr ($ this- gt; params [$ key], 0, $ this- gt; paramLengths [$ key], UTF - 8 raquo ;);
}
{
$ this- gt; paramsTemp [$ key]=$ this- gt; params [$ key];
}
$ this- gt; paramsTemp [$ key]=is_int ($ this- gt; paramsTemp [$ key])? $ this- gt; paramsTemp [$ key]: . $ this- gt; sqlString ($ this- gt; paramsTemp [$ key]). raquo ;;;
}
}
} errorCode...