Предотвращение ошибки #001690 BIGINT UNSIGNED value is out of range, проявляющейся в MySQL 5.5 (http://torrentpier.me/threads/498/). git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@419 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
glix08 2012-05-21 17:58:20 +00:00
commit 07492c76cd
2 changed files with 5 additions and 2 deletions

View file

@ -56,8 +56,8 @@ $domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $do
// Increase number of revision after update
$bb_cfg['tp_version'] = '2.5 Beta';
$bb_cfg['tp_release_state'] = 'R418';
$bb_cfg['tp_release_date'] = '18-05-2012';
$bb_cfg['tp_release_state'] = 'R419';
$bb_cfg['tp_release_date'] = '21-05-2012';
// Database
$charset = 'utf8';

View file

@ -68,6 +68,9 @@ function sync ($type, $id)
$tmp_sync_topics = 'tmp_sync_topics';
// Проверка на остаточные записи об уже удаленных топиках (критично в MySQL 5.5)
DB()->query("DELETE FROM ". BB_TOPICS ." WHERE topic_first_post_id NOT IN (SELECT post_id FROM ". BB_POSTS .")");
DB()->query("
CREATE TEMPORARY TABLE $tmp_sync_topics (
topic_id MEDIUMINT UNSIGNED NOT NULL DEFAULT '0',