BUG 10050 Integridad Referencial SOLVED

- Added instruction suggested
This commit is contained in:
Julio Cesar Laura
2012-11-12 14:28:25 -04:00
parent 2e78a2ee07
commit 9c6a4f1839
4 changed files with 4 additions and 0 deletions

View File

@@ -162,6 +162,7 @@ class DataBaseMaintenance
$this->link = mysql_connect( $this->host, $this->user, $this->passwd ); $this->link = mysql_connect( $this->host, $this->user, $this->passwd );
@mysql_query( "SET NAMES 'utf8';" ); @mysql_query( "SET NAMES 'utf8';" );
@mysql_query( "SET FOREIGN_KEY_CHECKS=0;" );
if (! $this->link) { if (! $this->link) {
throw new Exception( "Couldn't connect to host {$this->host} with user {$this->user}" ); throw new Exception( "Couldn't connect to host {$this->host} with user {$this->user}" );
} }

View File

@@ -193,6 +193,7 @@ class multipleFilesBackup
CLI::logging( "> Connecting to system database in '$dbHost'\n" ); CLI::logging( "> Connecting to system database in '$dbHost'\n" );
$link = mysql_connect( $dbHost, $dbUser, $dbPass ); $link = mysql_connect( $dbHost, $dbUser, $dbPass );
@mysql_query( "SET NAMES 'utf8';" ); @mysql_query( "SET NAMES 'utf8';" );
@mysql_query( "SET FOREIGN_KEY_CHECKS=0;" );
if (! $link) { if (! $link) {
throw new Exception( 'Could not connect to system database: ' . mysql_error() ); throw new Exception( 'Could not connect to system database: ' . mysql_error() );
} }

View File

@@ -1123,6 +1123,7 @@ class workspaceTools
CLI::logging( "> Connecting to system database in '$dbHost'\n" ); CLI::logging( "> Connecting to system database in '$dbHost'\n" );
$link = mysql_connect( $dbHost, $dbUser, $dbPass ); $link = mysql_connect( $dbHost, $dbUser, $dbPass );
@mysql_query( "SET NAMES 'utf8';" ); @mysql_query( "SET NAMES 'utf8';" );
@mysql_query( "SET FOREIGN_KEY_CHECKS=0;" );
if (! $link) { if (! $link) {
throw new Exception( 'Could not connect to system database: ' . mysql_error() ); throw new Exception( 'Could not connect to system database: ' . mysql_error() );
} }

View File

@@ -345,6 +345,7 @@ class Content extends BaseContent
mysql_select_db( $workSpace->dbName, $link ); mysql_select_db( $workSpace->dbName, $link );
mysql_query( "SET NAMES 'utf8';" ); mysql_query( "SET NAMES 'utf8';" );
mysql_query( "SET FOREIGN_KEY_CHECKS=0;" );
mysql_query( 'SET OPTION SQL_BIG_SELECTS=1' ); mysql_query( 'SET OPTION SQL_BIG_SELECTS=1' );
$result = mysql_unbuffered_query( $sql, $link ); $result = mysql_unbuffered_query( $sql, $link );
$list = array (); $list = array ();