BUG 10050 Integridad Referencial SOLVED
- Added instruction suggested
This commit is contained in:
@@ -162,6 +162,7 @@ class DataBaseMaintenance
|
||||
|
||||
$this->link = mysql_connect( $this->host, $this->user, $this->passwd );
|
||||
@mysql_query( "SET NAMES 'utf8';" );
|
||||
@mysql_query( "SET FOREIGN_KEY_CHECKS=0;" );
|
||||
if (! $this->link) {
|
||||
throw new Exception( "Couldn't connect to host {$this->host} with user {$this->user}" );
|
||||
}
|
||||
|
||||
@@ -193,6 +193,7 @@ class multipleFilesBackup
|
||||
CLI::logging( "> Connecting to system database in '$dbHost'\n" );
|
||||
$link = mysql_connect( $dbHost, $dbUser, $dbPass );
|
||||
@mysql_query( "SET NAMES 'utf8';" );
|
||||
@mysql_query( "SET FOREIGN_KEY_CHECKS=0;" );
|
||||
if (! $link) {
|
||||
throw new Exception( 'Could not connect to system database: ' . mysql_error() );
|
||||
}
|
||||
|
||||
@@ -1123,6 +1123,7 @@ class workspaceTools
|
||||
CLI::logging( "> Connecting to system database in '$dbHost'\n" );
|
||||
$link = mysql_connect( $dbHost, $dbUser, $dbPass );
|
||||
@mysql_query( "SET NAMES 'utf8';" );
|
||||
@mysql_query( "SET FOREIGN_KEY_CHECKS=0;" );
|
||||
if (! $link) {
|
||||
throw new Exception( 'Could not connect to system database: ' . mysql_error() );
|
||||
}
|
||||
|
||||
@@ -345,6 +345,7 @@ class Content extends BaseContent
|
||||
|
||||
mysql_select_db( $workSpace->dbName, $link );
|
||||
mysql_query( "SET NAMES 'utf8';" );
|
||||
mysql_query( "SET FOREIGN_KEY_CHECKS=0;" );
|
||||
mysql_query( 'SET OPTION SQL_BIG_SELECTS=1' );
|
||||
$result = mysql_unbuffered_query( $sql, $link );
|
||||
$list = array ();
|
||||
|
||||
Reference in New Issue
Block a user