pluf2

pluf2 Commit Details


Date:2009-04-02 10:46:52 (15 years 8 months ago)
Author:Loic d'Anterroches
Branch:master
Commit:fc18955b62b883b690385f178509cb9c85286e12
Parents: b3f5684117c700fc7231a632cd7177aca2fa06e8
Message:Fixed to display connection errors with MySQL.

Changes:

File differences

src/Pluf/DB/MySQL.php
3939
4040
4141
42
42
4343
4444
4545
......
5151
5252
5353
54
54
5555
5656
5757
Pluf::loadFunction('Pluf_DB_defaultTypecast');
$this->type_cast = Pluf_DB_defaultTypecast();
$this->debug('* MYSQL CONNECT');
$this->con_id = @mysql_connect($server, $user, $pwd);
$this->con_id = mysql_connect($server, $user, $pwd);
$this->debug = $debug;
$this->pfx = $pfx;
if (!$this->con_id) {
function database($dbname)
{
$db = @mysql_select_db($dbname);
$db = mysql_select_db($dbname);
$this->debug('* USE DATABASE '.$dbname);
if (!$db) {
throw new Exception($this->getError());

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.05925s using 13 queries.