X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fdb%2Fconnect_db.inc;h=147f4a5f7972ae3d7d48ae2247f54955f6a89fa9;hb=7e8df3a179c05c51085349e139aac9ce88b9378d;hp=20ce648f08b2ee419530290ec7daa2949767a650;hpb=3df0648d1513215ea28378e679d4291d3e609ba6;p=fa-stable.git diff --git a/includes/db/connect_db.inc b/includes/db/connect_db.inc index 20ce648f..147f4a5f 100644 --- a/includes/db/connect_db.inc +++ b/includes/db/connect_db.inc @@ -10,7 +10,7 @@ See the License here . ***********************************************************************/ //$path_to_root=".."; - +define('MAX_DEADLOCK_RETRY', 3); if (function_exists('mysqli_connect')) include_once("connect_db_mysqli.inc"); @@ -90,7 +90,7 @@ function get_mysql_collation($lang=null) 'it' => 'roman', ); - return 'utf8_'.(isset($db_collation[$lang]) ? $db_collation[$lang] : 'general').'_ci'; + return 'utf8_'.(isset($db_collation[$lang]) ? $db_collation[$lang] : 'unicode').'_ci'; } /* @@ -116,5 +116,12 @@ function db_get_default_charset() return $var[0]; } - -?> \ No newline at end of file +/* + SQL db profiling stub +*/ +if (!function_exists('db_profile')) +{ + function db_profile($sql=false) + { + } +} \ No newline at end of file