root/dev/common/includes/db.php @ 202

Revision 202, 0.6 KB (checked in by exi, 16 years ago)

Fixed a bug belonging to the new mysql version code.

Line 
1<?php
2require_once('config.php');
3require_once('common/includes/globals.php');
4require_once('common/includes/php_compat.php');
5
6if (defined('DB_USE_QCACHE') && DB_USE_QCACHE === true)
7{
8    require_once('common/includes/class.db_cache.php');
9}
10else
11{
12    require_once('common/includes/class.db.php');
13}
14
15// get mysql server info and store it in a define so we know if its
16// safe to use subquerys or not
17$conn = new DBConnection;
18$value = (float)mysql_get_server_info($conn->id_);
19if ($value > 4.1)
20{
21    define('KB_MYSQL41', true);
22}
23else
24{
25    define('KB_MYSQL41', false);
26}
27?>
Note: See TracBrowser for help on using the browser.