From 9790100ad60c416c374c62c6c312c505168a5f68 Mon Sep 17 00:00:00 2001 From: ThinkPHP Date: Sat, 27 Apr 2013 21:29:01 +0800 Subject: [PATCH] =?UTF-8?q?Think/Db/Lite=E7=B1=BB=E8=B0=83=E6=95=B4=20?= =?UTF-8?q?=E5=BF=85=E9=A1=BB=E8=AE=BE=E7=BD=AEdsn=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Library/Think/Db/Lite.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Library/Think/Db/Lite.php b/Library/Think/Db/Lite.php index 10774aa8..d4f38e6f 100644 --- a/Library/Think/Db/Lite.php +++ b/Library/Think/Db/Lite.php @@ -90,7 +90,7 @@ class Lite { if(empty($config)) $config = $this->config; try{ if(empty($config['dsn'])) { - $config['dsn'] = $this->parseDsn($config); + E('Think/Db/Lite 必须设置 dsn参数'); } $this->linkID[$linkNum] = new PDO( $config['dsn'], $config['username'], $config['password'],$config['params']); }catch (\PDOException $e) { @@ -100,14 +100,6 @@ class Lite { return $this->linkID[$linkNum]; } - /** - * 解析pdo连接的dsn信息 - * @access public - * @param array $config 连接信息 - * @return string - */ - protected function parseDsn($config){} - /** * 释放查询结果 * @access public