亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? mysql.pm

?? bugzilla
?? PM
?? 第 1 頁 / 共 3 頁
字號:
# -*- Mode: perl; indent-tabs-mode: nil -*-## The contents of this file are subject to the Mozilla Public# License Version 1.1 (the "License"); you may not use this file# except in compliance with the License. You may obtain a copy of# the License at http://www.mozilla.org/MPL/## Software distributed under the License is distributed on an "AS# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or# implied. See the License for the specific language governing# rights and limitations under the License.## The Original Code is the Bugzilla Bug Tracking System.## The Initial Developer of the Original Code is Netscape Communications# Corporation. Portions created by Netscape are# Copyright (C) 1998 Netscape Communications Corporation. All# Rights Reserved.## Contributor(s): Dave Miller <davem00@aol.com>#                 Gayathri Swaminath <gayathrik00@aol.com>#                 Jeroen Ruigrok van der Werven <asmodai@wxs.nl>#                 Dave Lawrence <dkl@redhat.com>#                 Tomas Kopal <Tomas.Kopal@altap.cz>#                 Max Kanat-Alexander <mkanat@bugzilla.org>#                 Lance Larsh <lance.larsh@oracle.com>=head1 NAMEBugzilla::DB::Mysql - Bugzilla database compatibility layer for MySQL=head1 DESCRIPTIONThis module overrides methods of the Bugzilla::DB module with MySQL specificimplementation. It is instantiated by the Bugzilla::DB module and should neverbe used directly.For interface details see L<Bugzilla::DB> and L<DBI>.=cutpackage Bugzilla::DB::Mysql;use strict;use Bugzilla::Constants;use Bugzilla::Util;use Bugzilla::Error;# This module extends the DB interface via inheritanceuse base qw(Bugzilla::DB);sub new {    my ($class, $user, $pass, $host, $dbname, $port, $sock) = @_;    # construct the DSN from the parameters we got    my $dsn = "DBI:mysql:host=$host;database=$dbname";    $dsn .= ";port=$port" if $port;    $dsn .= ";mysql_socket=$sock" if $sock;        my $self = $class->db_new($dsn, $user, $pass);    # This makes sure that if the tables are encoded as UTF-8, we    # return their data correctly.    $self->do("SET NAMES utf8") if Bugzilla->params->{'utf8'};    # all class local variables stored in DBI derived class needs to have    # a prefix 'private_'. See DBI documentation.    $self->{private_bz_tables_locked} = "";    bless ($self, $class);        # Bug 321645 - disable MySQL strict mode, if set    my ($var, $sql_mode) = $self->selectrow_array(        "SHOW VARIABLES LIKE 'sql\\_mode'");    if ($sql_mode) {        # STRICT_TRANS_TABLE or STRICT_ALL_TABLES enable MySQL strict mode,        # causing bug 321645. TRADITIONAL sets these modes (among others) as        # well, so it has to be stipped as well        my $new_sql_mode =            join(",", grep {$_ !~ /^STRICT_(?:TRANS|ALL)_TABLES|TRADITIONAL$/}                            split(/,/, $sql_mode));        if ($sql_mode ne $new_sql_mode) {            $self->do("SET SESSION sql_mode = ?", undef, $new_sql_mode);        }    }    return $self;}# when last_insert_id() is supported on MySQL by lowest DBI/DBD version# required by Bugzilla, this implementation can be removed.sub bz_last_key {    my ($self) = @_;    my ($last_insert_id) = $self->selectrow_array('SELECT LAST_INSERT_ID()');    return $last_insert_id;}sub sql_regexp {    my ($self, $expr, $pattern) = @_;    return "$expr REGEXP $pattern";}sub sql_not_regexp {    my ($self, $expr, $pattern) = @_;    return "$expr NOT REGEXP $pattern";}sub sql_limit {    my ($self, $limit, $offset) = @_;    if (defined($offset)) {        return "LIMIT $offset, $limit";    } else {        return "LIMIT $limit";    }}sub sql_string_concat {    my ($self, @params) = @_;        return 'CONCAT(' . join(', ', @params) . ')';}sub sql_fulltext_search {    my ($self, $column, $text) = @_;    # Add the boolean mode modifier if the search string contains    # boolean operators.    my $mode = ($text =~ /[+\-<>()~*"]/ ? "IN BOOLEAN MODE" : "");    # quote the text for use in the MATCH AGAINST expression    $text = $self->quote($text);    # untaint the text, since it's safe to use now that we've quoted it    trick_taint($text);    return "MATCH($column) AGAINST($text $mode)";}sub sql_istring {    my ($self, $string) = @_;        return $string;}sub sql_from_days {    my ($self, $days) = @_;    return "FROM_DAYS($days)";}sub sql_to_days {    my ($self, $date) = @_;    return "TO_DAYS($date)";}sub sql_date_format {    my ($self, $date, $format) = @_;    $format = "%Y.%m.%d %H:%i:%s" if !$format;        return "DATE_FORMAT($date, " . $self->quote($format) . ")";}sub sql_interval {    my ($self, $interval, $units) = @_;        return "INTERVAL $interval $units";}sub sql_position {    my ($self, $fragment, $text) = @_;    # mysql 4.0.1 and lower do not support CAST    # (checksetup has a check for unsupported versions)    my $server_version = $self->bz_server_version;    return "INSTR(CAST($text AS BINARY), CAST($fragment AS BINARY))";}sub sql_group_by {    my ($self, $needed_columns, $optional_columns) = @_;    # MySQL allows to specify all columns as ANSI SQL requires, but also    # allow you to specify just minimal subset to get unique result.    # According to MySQL documentation, the less columns you specify    # the faster the query runs.    return "GROUP BY $needed_columns";}sub bz_lock_tables {    my ($self, @tables) = @_;    my $list = join(', ', @tables);    # Check first if there was no lock before    if ($self->{private_bz_tables_locked}) {        ThrowCodeError("already_locked", { current => $self->{private_bz_tables_locked},                                           new => $list });    } else {        $self->do('LOCK TABLE ' . $list);             $self->{private_bz_tables_locked} = $list;    }}sub bz_unlock_tables {    my ($self, $abort) = @_;        # Check first if there was previous matching lock    if (!$self->{private_bz_tables_locked}) {        # Abort is allowed even without previous lock for error handling        return if $abort;        ThrowCodeError("no_matching_lock");    } else {        $self->do("UNLOCK TABLES");            $self->{private_bz_tables_locked} = "";    }}# As Bugzilla currently runs on MyISAM storage, which does not support# transactions, these functions die when called.# Maybe we should just ignore these calls for now, but as we are not# using transactions in MySQL yet, this just hints the developers.sub bz_start_transaction {    die("Attempt to start transaction on DB without transaction support");}sub bz_commit_transaction {    die("Attempt to commit transaction on DB without transaction support");}sub bz_rollback_transaction {    die("Attempt to rollback transaction on DB without transaction support");}sub _bz_get_initial_schema {    my ($self) = @_;    return $self->_bz_build_schema_from_disk();}###################################################################### Database Setup#####################################################################sub bz_setup_database {    my ($self) = @_;    # Figure out if any existing tables are of type ISAM and convert them    # to type MyISAM if so.  ISAM tables are deprecated in MySQL 3.23,    # which Bugzilla now requires, and they don't support more than 16    # indexes per table, which Bugzilla needs.    my $sth = $self->prepare("SHOW TABLE STATUS");    $sth->execute;    my @isam_tables = ();    while (my ($name, $type) = $sth->fetchrow_array) {        push(@isam_tables, $name) if $type eq "ISAM";    }    if(scalar(@isam_tables)) {        print "One or more of the tables in your existing MySQL database are\n"              . "of type ISAM. ISAM tables are deprecated in MySQL 3.23 and\n"              . "don't support more than 16 indexes per table, which \n"              . "Bugzilla needs.\n  Converting your ISAM tables to type"              . " MyISAM:\n\n";        foreach my $table (@isam_tables) {            print "Converting table $table... ";            $self->do("ALTER TABLE $table TYPE = MYISAM");            print "done.\n";        }        print "\nISAM->MyISAM table conversion done.\n\n";    }    my @tables = $self->bz_table_list_real();    $self->_after_table_status(\@tables);    # Versions of Bugzilla before the existence of Bugzilla::DB::Schema did     # not provide explicit names for the table indexes. This means    # that our upgrades will not be reliable, because we look for the name    # of the index, not what fields it is on, when doing upgrades.    # (using the name is much better for cross-database compatibility     # and general reliability). It's also very important that our    # Schema object be consistent with what is on the disk.    #    # While we're at it, we also fix some inconsistent index naming    # from the original checkin of Bugzilla::DB::Schema.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久综合国产精品| 成人av中文字幕| 91麻豆精品国产91久久久资源速度 | 一本大道久久a久久综合| 51午夜精品国产| 偷拍日韩校园综合在线| 99re这里只有精品首页| 日韩美女精品在线| 色成年激情久久综合| 亚洲一区在线观看免费观看电影高清| 久久奇米777| 国产乱码字幕精品高清av| 中文文精品字幕一区二区| 国产91高潮流白浆在线麻豆 | 久久久一区二区三区捆绑**| 国产一本一道久久香蕉| 中文av一区二区| 日本精品视频一区二区三区| 亚洲成人手机在线| 国产日韩三级在线| 欧美三区免费完整视频在线观看| 欧美一区二区三区思思人| 国模少妇一区二区三区| 国产亚洲自拍一区| 欧美喷潮久久久xxxxx| 国产超碰在线一区| 日本欧美一区二区三区| 亚洲天堂久久久久久久| 91精品福利在线一区二区三区| 久久精品欧美一区二区三区麻豆| 亚洲一级在线观看| 2019国产精品| 欧美日本免费一区二区三区| 国产大陆亚洲精品国产| 天堂av在线一区| 综合久久久久综合| 久久久久国产精品麻豆| 欧美高清视频一二三区 | 777xxx欧美| 99久久99精品久久久久久| 精品一区二区三区久久久| 亚洲在线中文字幕| 亚洲精品视频在线| 国产精品视频看| 久久久av毛片精品| 亚洲一区二区三区视频在线播放| 成人精品一区二区三区四区| 性欧美大战久久久久久久久| 亚洲精品日产精品乱码不卡| 国产精品视频一二三| 亚洲另类在线视频| 亚洲欧美在线视频| 一区二区欧美视频| 一区二区三区日本| 丝袜美腿成人在线| 男人的天堂亚洲一区| 久久99久久久久| 国产高清不卡二三区| 成人综合婷婷国产精品久久免费| 国产婷婷一区二区| 中文字幕av一区 二区| 专区另类欧美日韩| 天堂成人免费av电影一区| 亚洲综合视频在线观看| 午夜精品国产更新| 国产精品中文字幕日韩精品 | 欧美日韩免费高清一区色橹橹| 亚洲成人资源在线| 久久69国产一区二区蜜臀| 国产aⅴ综合色| 555夜色666亚洲国产免| 精品日韩成人av| 韩国成人精品a∨在线观看| 国产一区二区三区久久久| 成人国产精品免费网站| 欧美一区二区三区小说| 国产精品久久毛片av大全日韩| 欧美日韩国产综合一区二区| 精品av久久707| 最新欧美精品一区二区三区| 美女久久久精品| 97精品国产露脸对白| 久久影院午夜论| 秋霞成人午夜伦在线观看| 色综合天天综合色综合av| 久久老女人爱爱| 日韩av一区二区在线影视| 99视频精品在线| 国产精品美女一区二区在线观看| 2024国产精品| 久久精品国产秦先生| 欧美艳星brazzers| 亚洲免费观看高清完整版在线 | 欧美伦理电影网| 亚洲一卡二卡三卡四卡无卡久久| 国产精品福利电影一区二区三区四区| 欧美在线观看一区| 亚洲欧美一区二区三区久本道91| 欧美另类z0zxhd电影| 亚洲国产精品尤物yw在线观看| 一区二区三区国产精华| 色综合天天做天天爱| 亚洲欧洲av另类| 欧美色区777第一页| 亚洲国产精品麻豆| 欧美一区二区福利视频| 欧美aaa在线| 国产三级一区二区三区| 成人av资源下载| 一区二区三区在线高清| 欧美猛男超大videosgay| 裸体在线国模精品偷拍| 国产色91在线| 色综合久久久网| 免费人成在线不卡| 久久婷婷久久一区二区三区| 成人免费看片app下载| 一区二区在线观看视频| 欧美一区二区人人喊爽| 国产精品亚洲第一| 亚洲一区二区免费视频| wwwwww.欧美系列| 欧美日韩在线精品一区二区三区激情| 久久综合狠狠综合| 欧美日韩综合不卡| 成人免费va视频| 天天色天天操综合| 国产精品久久久久国产精品日日 | 亚洲精品国产无套在线观| 91精品国产欧美一区二区18| 欧美系列亚洲系列| 不卡的av中国片| 国产精品69毛片高清亚洲| 亚洲电影一区二区| 亚洲欧洲日韩综合一区二区| 欧美精品一区二区三区很污很色的| 午夜精品一区在线观看| 国产精品入口麻豆九色| 日韩一区二区视频| 欧美日韩精品免费| 欧美日韩精品一区二区三区| caoporn国产精品| aaa欧美色吧激情视频| 国产精品2024| www.欧美亚洲| 99久久精品免费看| 99久久精品99国产精品| 成人黄色网址在线观看| 国产成人在线视频播放| 免费久久99精品国产| 久久 天天综合| 国产精品影视在线| 福利一区在线观看| caoporm超碰国产精品| 色噜噜夜夜夜综合网| 欧美日韩另类一区| 日韩精品最新网址| 久久嫩草精品久久久久| 久久久久久麻豆| 亚洲女同女同女同女同女同69| 一本大道av伊人久久综合| 欧美中文字幕亚洲一区二区va在线| 亚洲高清视频中文字幕| 精品一区二区影视| 成人免费va视频| 欧美精品久久一区二区三区| 欧美一区二区三区四区视频| 久久久三级国产网站| 国产精品福利电影一区二区三区四区| 欧美日韩另类一区| 国产人成一区二区三区影院| 18欧美乱大交hd1984| 美日韩一区二区| 欧美亚洲日本国产| 欧美一区二区高清| 亚洲欧美日韩系列| 国产一区美女在线| 欧美日韩国产中文| **性色生活片久久毛片| 久久99精品久久久| 欧美日韩三级一区二区| 国产精品欧美一区二区三区| 欧美a一区二区| 欧美综合亚洲图片综合区| 欧美国产日韩精品免费观看| 青青草精品视频| 欧美日韩亚洲综合一区| 日韩毛片在线免费观看| 粉嫩在线一区二区三区视频| 日韩视频中午一区| 麻豆精品在线看| 宅男噜噜噜66一区二区66| 亚洲综合久久久| 欧美亚洲高清一区二区三区不卡| 色8久久人人97超碰香蕉987| 国产精品嫩草久久久久| 国产v日产∨综合v精品视频| 久久久一区二区三区| 国产精品一卡二卡| 国产日韩欧美精品在线|