mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
changing default connect setting in bake to connect rather than pconnect
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3671 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
337a7af264
commit
f67e3189ab
1 changed files with 5 additions and 5 deletions
|
@ -269,22 +269,22 @@ class Bake {
|
|||
|
||||
switch($driver) {
|
||||
case 'mysql':
|
||||
$connect = 'mysql_pconnect';
|
||||
$connect = 'mysql_connect';
|
||||
break;
|
||||
case 'mysqli':
|
||||
$connect = 'mysqli_connect';
|
||||
break;
|
||||
case 'mssql':
|
||||
$connect = 'mssql_pconnect';
|
||||
$connect = 'mssql_connect';
|
||||
break;
|
||||
case 'sqlite':
|
||||
$connect = 'sqlite_popen';
|
||||
$connect = 'sqlite_open';
|
||||
break;
|
||||
case 'postgres':
|
||||
$connect = 'pg_pconnect';
|
||||
$connect = 'pg_connect';
|
||||
break;
|
||||
case 'odbc':
|
||||
$connect = 'odbc_pconnect';
|
||||
$connect = 'odbc_connect';
|
||||
break;
|
||||
default:
|
||||
$this->stdout('The connection parameter could not be set.');
|
||||
|
|
Loading…
Add table
Reference in a new issue