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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? sybase.php

?? PhpWiki是sourceforge的一個(gè)開源項(xiàng)目
?? PHP
?? 第 1 頁 / 共 2 頁
字號:
<?php/* vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker: */// +----------------------------------------------------------------------+// | PHP Version 4                                                        |// +----------------------------------------------------------------------+// | Copyright (c) 1997-2004 The PHP Group                                |// +----------------------------------------------------------------------+// | This source file is subject to version 2.02 of the PHP license,      |// | that is bundled with this package in the file LICENSE, and is        |// | available at through the world-wide-web at                           |// | http://www.php.net/license/2_02.txt.                                 |// | If you did not receive a copy of the PHP license and are unable to   |// | obtain it through the world-wide-web, please send a note to          |// | license@php.net so we can mail you a copy immediately.               |// +----------------------------------------------------------------------+// | Authors: Sterling Hughes <sterling@php.net>                          |// |          Ant鬾io Carlos Ven鈔cio J鷑ior <floripa@php.net>            |// | Maintainer: Daniel Convissor <danielc@php.net>                       |// +----------------------------------------------------------------------+//// $Id: sybase.php,v 1.3 2004/06/21 08:39:38 rurban Exp $// TODO//    - This driver may fail with multiple connections under the same//      user/pass/host and different databasesrequire_once 'DB/common.php';/** * Database independent query interface definition for PHP's Sybase * extension. * * @package  DB * @version  $Id: sybase.php,v 1.3 2004/06/21 08:39:38 rurban Exp $ * @category Database * @author   Sterling Hughes <sterling@php.net> * @author   Ant鬾io Carlos Ven鈔cio J鷑ior <floripa@php.net> */class DB_sybase extends DB_common{    // {{{ properties    var $connection;    var $phptype, $dbsyntax;    var $prepare_tokens = array();    var $prepare_types = array();    var $transaction_opcount = 0;    var $autocommit = true;    // }}}    // {{{ constructor    /**     * DB_sybase constructor.     *     * @access public     */    function DB_sybase()    {        $this->DB_common();        $this->phptype = 'sybase';        $this->dbsyntax = 'sybase';        $this->features = array(            'prepare' => false,            'pconnect' => true,            'transactions' => false,            'limit' => 'emulate'        );        $this->errorcode_map = array(        );    }    // }}}    // {{{ connect()    /**     * Connect to a database and log in as the specified user.     *     * @param $dsn the data source name (see DB::parseDSN for syntax)     * @param $persistent (optional) whether the connection should     *        be persistent     * @access public     * @return int DB_OK on success, a DB error on failure     */    function connect($dsninfo, $persistent = false)    {        if (!DB::assertExtension('sybase') &&            !DB::assertExtension('sybase_ct'))        {            return $this->raiseError(DB_ERROR_EXTENSION_NOT_FOUND);        }        $this->dsn = $dsninfo;        $interface = $dsninfo['hostspec'] ? $dsninfo['hostspec'] : 'localhost';        $connect_function = $persistent ? 'sybase_pconnect' : 'sybase_connect';        if ($interface && $dsninfo['username'] && $dsninfo['password']) {            $conn = @$connect_function($interface, $dsninfo['username'],                                       $dsninfo['password']);        } elseif ($interface && $dsninfo['username']) {            /*             * Using false for pw as a workaround to avoid segfault.             * See PEAR bug 631             */            $conn = @$connect_function($interface, $dsninfo['username'],                                       false);        } else {            $conn = false;        }        if (!$conn) {            return $this->raiseError(DB_ERROR_CONNECT_FAILED);        }        if ($dsninfo['database']) {            if (!@sybase_select_db($dsninfo['database'], $conn)) {                return $this->raiseError(DB_ERROR_NODBSELECTED, null,                                         null, null, @sybase_get_last_message());            }            $this->_db = $dsninfo['database'];        }        $this->connection = $conn;        return DB_OK;    }    // }}}    // {{{ disconnect()    /**     * Log out and disconnect from the database.     *     * @access public     *     * @return bool true on success, false if not connected.     */    function disconnect()    {        $ret = @sybase_close($this->connection);        $this->connection = null;        return $ret;    }    // }}}    // {{{ errorNative()    /**     * Get the last server error messge (if any)     *     * @return string sybase last error message     */    function errorNative()    {        return @sybase_get_last_message();    }    // }}}    // {{{ errorCode()    /**     * Determine PEAR::DB error code from the database's text error message.     *     * @param  string  $errormsg  error message returned from the database     * @return integer  an error number from a DB error constant     */    function errorCode($errormsg)    {        static $error_regexps;        if (!isset($error_regexps)) {            $error_regexps = array(                '/Incorrect syntax near/'                    => DB_ERROR_SYNTAX,                '/^Unclosed quote before the character string [\"\'].*[\"\']\./'                    => DB_ERROR_SYNTAX,                '/Implicit conversion from datatype [\"\'].+[\"\'] to [\"\'].+[\"\'] is not allowed\./'                    => DB_ERROR_INVALID_NUMBER,                '/Cannot drop the table [\"\'].+[\"\'], because it doesn\'t exist in the system catalogs\./'                    => DB_ERROR_NOSUCHTABLE,                '/Only the owner of object [\"\'].+[\"\'] or a user with System Administrator \(SA\) role can run this command\./'                    => DB_ERROR_ACCESS_VIOLATION,                '/^.+ permission denied on object .+, database .+, owner .+/'                    => DB_ERROR_ACCESS_VIOLATION,                '/^.* permission denied, database .+, owner .+/'                    => DB_ERROR_ACCESS_VIOLATION,                '/[^.*] not found\./'                    => DB_ERROR_NOSUCHTABLE,                '/There is already an object named/'                    => DB_ERROR_ALREADY_EXISTS,                '/Invalid column name/'                    => DB_ERROR_NOSUCHFIELD,                '/does not allow null values/'                    => DB_ERROR_CONSTRAINT_NOT_NULL,                '/Command has been aborted/'                    => DB_ERROR_CONSTRAINT,            );        }        foreach ($error_regexps as $regexp => $code) {            if (preg_match($regexp, $errormsg)) {                return $code;            }        }        return DB_ERROR;    }    // }}}    // {{{ sybaseRaiseError()    /**     * Gather information about an error, then use that info to create a     * DB error object and finally return that object.     *     * @param  integer  $errno  PEAR error number (usually a DB constant) if     *                          manually raising an error     * @return object  DB error object     * @see errorNative()     * @see errorCode()     * @see DB_common::raiseError()     */    function sybaseRaiseError($errno = null)    {        $native = $this->errorNative();        if ($errno === null) {            $errno = $this->errorCode($native);        }        return $this->raiseError($errno, null, null, null, $native);    }    // }}}    // {{{ simpleQuery()    /**     * Send a query to Sybase and return the results as a Sybase resource     * identifier.     *     * @param the SQL query     *     * @access public     *     * @return mixed returns a valid Sybase result for successful SELECT     * queries, DB_OK for other successful queries.  A DB error is     * returned on failure.     */    function simpleQuery($query)    {        $ismanip = DB::isManip($query);        $this->last_query = $query;        if (!@sybase_select_db($this->_db, $this->connection)) {            return $this->sybaseRaiseError(DB_ERROR_NODBSELECTED);        }        $query = $this->modifyQuery($query);        if (!$this->autocommit && $ismanip) {            if ($this->transaction_opcount == 0) {                $result = @sybase_query('BEGIN TRANSACTION', $this->connection);                if (!$result) {                    return $this->sybaseRaiseError();                }            }            $this->transaction_opcount++;        }        $result = @sybase_query($query, $this->connection);        if (!$result) {            return $this->sybaseRaiseError();        }        if (is_resource($result)) {            $numrows = $this->numRows($result);            if (is_object($numrows)) {                return $numrows;            }            $this->num_rows[(int)$result] = $numrows;            return $result;        }        // Determine which queries that should return data, and which        // should return an error code only.        return $ismanip ? DB_OK : $result;    }    // }}}    // {{{ nextResult()    /**     * Move the internal sybase result pointer to the next available result     *     * @param a valid sybase result resource     *     * @access public     *     * @return true if a result is available otherwise return false     */    function nextResult($result)    {        return false;    }    // }}}    // {{{ fetchInto()    /**     * Fetch a row and insert the data into an existing array.     *     * Formating of the array and the data therein are configurable.     * See DB_result::fetchInto() for more information.     *     * @param resource $result    query result identifier     * @param array    $arr       (reference) array where data from the row     *                            should be placed     * @param int      $fetchmode how the resulting array should be indexed     * @param int      $rownum    the row number to fetch     *     * @return mixed DB_OK on success, null when end of result set is     *               reached or on failure     *     * @see DB_result::fetchInto()     * @access private     */    function fetchInto($result, &$arr, $fetchmode, $rownum=null)    {        if ($rownum !== null) {            if (!@sybase_data_seek($result, $rownum)) {                return null;            }        }        if ($fetchmode & DB_FETCHMODE_ASSOC) {            if (function_exists('sybase_fetch_assoc')) {                $arr = @sybase_fetch_assoc($result);            } else {                if ($arr = @sybase_fetch_array($result)) {                    foreach ($arr as $key => $value) {                        if (is_int($key)) {                            unset($arr[$key]);                        }                    }                }            }            if ($this->options['portability'] & DB_PORTABILITY_LOWERCASE && $arr) {                $arr = array_change_key_case($arr, CASE_LOWER);            }        } else {            $arr = @sybase_fetch_row($result);        }        if (!$arr) {            // reported not work as seems that sybase_get_last_message()            // always return a message here            //if ($errmsg = @sybase_get_last_message()) {            //    return $this->sybaseRaiseError($errmsg);            //} else {                return null;            //}        }        if ($this->options['portability'] & DB_PORTABILITY_RTRIM) {            $this->_rtrimArrayValues($arr);        }        if ($this->options['portability'] & DB_PORTABILITY_NULL_TO_EMPTY) {            $this->_convertNullArrayValuesToEmpty($arr);        }        return DB_OK;    }    // }}}    // {{{ freeResult()    /**     * Free the internal resources associated with $result.     *     * @param $result Sybase result identifier     *     * @access public     *     * @return bool true on success, false if $result is invalid     */    function freeResult($result)    {        unset($this->num_rows[(int)$result]);        return @sybase_free_result($result);    }    // }}}    // {{{ numCols()    /**     * Get the number of columns in a result set.     *     * @param $result Sybase result identifier     *     * @access public     *     * @return int the number of columns per row in $result     */    function numCols($result)    {        $cols = @sybase_num_fields($result);        if (!$cols) {            return $this->sybaseRaiseError();        }        return $cols;    }    // }}}    // {{{ numRows()    /**     * Get the number of rows in a result set.     *     * @param $result Sybase result identifier     *     * @access public     *     * @return int the number of rows in $result     */    function numRows($result)    {        $rows = @sybase_num_rows($result);        if ($rows === false) {            return $this->sybaseRaiseError();        }        return $rows;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日日嗨av一区二区三区四区| 国产亚洲一区二区在线观看| 亚洲一区二区欧美激情| 91精品福利在线| 亚洲影院在线观看| 欧美日韩国产系列| 轻轻草成人在线| 精品国产91久久久久久久妲己| 麻豆成人91精品二区三区| 久久综合一区二区| av不卡在线观看| 亚洲国产视频一区| 欧美zozozo| 9色porny自拍视频一区二区| 18欧美亚洲精品| 欧美日产在线观看| 久久电影网站中文字幕| 中文字幕不卡的av| 在线看国产一区二区| 免费人成黄页网站在线一区二区 | 国产.欧美.日韩| 一区二区中文字幕在线| 色88888久久久久久影院野外| 亚洲一区二区三区中文字幕| 日韩视频在线你懂得| 欧美一区二区三区在线观看视频 | 久久黄色级2电影| 国产精品丝袜久久久久久app| 在线观看av不卡| 精品一区二区三区免费观看| 亚洲色图另类专区| 51午夜精品国产| thepron国产精品| 男人的天堂亚洲一区| 中文字幕亚洲成人| 欧美日韩一区二区在线观看| 九九视频精品免费| 亚洲国产美女搞黄色| 久久久久久电影| 欧美日韩dvd在线观看| 丁香激情综合国产| 美日韩一级片在线观看| 亚洲色图欧美激情| 久久精品视频一区二区三区| 欧美日韩免费一区二区三区 | 一区二区三国产精华液| 久久青草欧美一区二区三区| 欧美调教femdomvk| 成人国产精品免费观看| 久久疯狂做爰流白浆xx| 亚洲成国产人片在线观看| 国产精品入口麻豆原神| 精品乱人伦小说| 欧美一区二区女人| 色婷婷精品久久二区二区蜜臂av| 国内外成人在线| 日韩激情在线观看| 亚洲国产精品麻豆| 亚洲欧美一区二区久久| 国产午夜精品一区二区三区四区| 日韩一二在线观看| 欧美日韩一区二区在线观看| 91香蕉视频在线| 成人综合在线网站| 国产精品系列在线播放| 欧美日韩国产成人在线91| 日本美女一区二区三区| 成人毛片老司机大片| 蜜桃视频在线观看一区| 亚洲444eee在线观看| 一区二区理论电影在线观看| 亚洲欧美综合网| 国产农村妇女毛片精品久久麻豆 | 91精品国产综合久久香蕉麻豆 | 91麻豆国产在线观看| 成人性生交大片免费看视频在线 | 日韩黄色小视频| 午夜激情久久久| 亚洲第一激情av| 偷拍自拍另类欧美| 丝袜美腿高跟呻吟高潮一区| 香蕉久久夜色精品国产使用方法 | 欧美日韩精品福利| 欧美美女一区二区三区| 欧美精品久久久久久久多人混战 | 精品99一区二区| 日韩精品综合一本久道在线视频| 日韩一区国产二区欧美三区| 欧美一区二区女人| 久久久综合网站| 国产精品午夜在线| 亚洲精品中文字幕在线观看| 夜夜嗨av一区二区三区中文字幕 | 日本视频中文字幕一区二区三区| 日韩精品1区2区3区| 美女视频网站久久| 国产一区二区三区av电影| 欧美三级资源在线| 欧美日本一区二区三区| 91精品国产综合久久福利软件 | 一区二区视频在线看| 亚洲永久免费视频| 麻豆久久一区二区| 成人免费视频caoporn| 久久久久久久综合日本| 中文字幕日韩av资源站| 亚洲成av人在线观看| 精品一区二区在线播放| 成人精品国产免费网站| 欧美日韩精品欧美日韩精品| 精品人伦一区二区色婷婷| 欧美国产日本韩| 一区二区视频在线看| 久久99日本精品| 91蝌蚪porny九色| 欧美一级二级三级乱码| 中文字幕在线观看不卡| 日本伊人午夜精品| 成人激情文学综合网| 欧美剧情片在线观看| 国产女主播一区| 日韩精品乱码免费| 成人a区在线观看| 91精品久久久久久蜜臀| 综合欧美亚洲日本| 久久国产尿小便嘘嘘| 91啦中文在线观看| 久久久777精品电影网影网| 亚洲精品欧美综合四区| 国产在线国偷精品产拍免费yy| 99国产欧美久久久精品| 欧美zozozo| 亚洲午夜久久久| av亚洲产国偷v产偷v自拍| 日韩三级电影网址| 一区二区三区四区在线| 高清不卡一二三区| 欧美一区二区视频免费观看| 亚洲美女区一区| 成人午夜视频福利| 欧美不卡在线视频| 午夜久久久久久| 色综合av在线| 国产精品免费av| 国内精品国产三级国产a久久| 欧美日韩免费一区二区三区视频| 国产精品毛片久久久久久| 久久精品国产久精国产| 欧美区一区二区三区| 亚洲精品日日夜夜| 99热精品国产| 中文字幕巨乱亚洲| 国产一区二区女| 日韩欧美国产成人一区二区| 天堂成人免费av电影一区| 91福利在线看| 亚洲日本va在线观看| 9人人澡人人爽人人精品| 国产午夜精品美女毛片视频| 久久99精品久久久久婷婷| 日韩一区二区在线观看视频| 天天色综合成人网| 欧美喷水一区二区| 亚洲成av人片| 7777精品伊人久久久大香线蕉经典版下载 | 亚洲精品久久久蜜桃| 99久久综合色| 亚洲人午夜精品天堂一二香蕉| 成人app下载| 亚洲女同女同女同女同女同69| 91丨九色porny丨蝌蚪| 中文字幕在线一区二区三区| www.亚洲激情.com| 中文字幕一区二区三区视频| av影院午夜一区| 一区二区三区日韩欧美精品 | 日韩电影在线观看网站| 欧美精品黑人性xxxx| 蜜桃视频第一区免费观看| 日韩欧美国产电影| 国产精品一区二区91| 国产精品视频九色porn| www.亚洲色图.com| 艳妇臀荡乳欲伦亚洲一区| 欧美猛男超大videosgay| 奇米综合一区二区三区精品视频| 欧美电影免费提供在线观看| 国产精品一区在线观看乱码| 国产精品系列在线| 欧美在线一二三四区| 天天综合色天天综合| 精品国产露脸精彩对白| 国产suv精品一区二区三区| 亚洲摸摸操操av| 69精品人人人人| 国产91精品在线观看| 亚洲欧美日韩国产综合在线| 欧美福利一区二区| 国产一区二区三区不卡在线观看 | 亚洲综合激情网|