BUG 10196 ProcessMaker 2.0.46 Error al importar un archivo .po SOLVED
- Restriction for user permissions. - Was added section for connection closing
This commit is contained in:
@@ -320,10 +320,6 @@ class Content extends BaseContent
|
|||||||
)Engine=MyISAM DEFAULT CHARSET='utf8' COMMENT='Table for add content';" );
|
)Engine=MyISAM DEFAULT CHARSET='utf8' COMMENT='Table for add content';" );
|
||||||
$oStatement->executeQuery();
|
$oStatement->executeQuery();
|
||||||
|
|
||||||
//set interactive timeout
|
|
||||||
$oStatement = $connection->prepareStatement( "set global interactive_timeout = 100;" );
|
|
||||||
$oStatement->executeQuery();
|
|
||||||
|
|
||||||
$sql = " SELECT DISTINCT CON_LANG
|
$sql = " SELECT DISTINCT CON_LANG
|
||||||
FROM CONTENT ";
|
FROM CONTENT ";
|
||||||
$stmt = $connection->createStatement();
|
$stmt = $connection->createStatement();
|
||||||
@@ -344,7 +340,7 @@ class Content extends BaseContent
|
|||||||
$workSpace = new workspaceTools( $workSpace );
|
$workSpace = new workspaceTools( $workSpace );
|
||||||
$workSpace->getDBInfo();
|
$workSpace->getDBInfo();
|
||||||
|
|
||||||
$link = mysql_pconnect( $workSpace->dbHost, $workSpace->dbUser, $workSpace->dbPass, MYSQL_CLIENT_INTERACTIVE ) or die( "Could not connect" );
|
$link = mysql_pconnect( $workSpace->dbHost, $workSpace->dbUser, $workSpace->dbPass) or die( "Could not connect" );
|
||||||
|
|
||||||
mysql_select_db( $workSpace->dbName, $link );
|
mysql_select_db( $workSpace->dbName, $link );
|
||||||
mysql_query( "SET NAMES 'utf8';" );
|
mysql_query( "SET NAMES 'utf8';" );
|
||||||
@@ -397,6 +393,16 @@ class Content extends BaseContent
|
|||||||
$statement = $connection->prepareStatement( "DROP TABLE CONTENT_BACKUP" );
|
$statement = $connection->prepareStatement( "DROP TABLE CONTENT_BACKUP" );
|
||||||
$statement->executeQuery();
|
$statement->executeQuery();
|
||||||
|
|
||||||
|
//close connection
|
||||||
|
$sql = "SELECT * FROM information_schema.processlist WHERE command = 'Sleep' and user = SUBSTRING_INDEX(USER(),'@',1) and db = DATABASE() ORDER BY id;";
|
||||||
|
$stmt = $connection->createStatement();
|
||||||
|
$rs = $stmt->executeQuery( $sql, ResultSet::FETCHMODE_ASSOC );
|
||||||
|
while ($rs->next()) {
|
||||||
|
$row = $rs->getRow();
|
||||||
|
$oStatement = $connection->prepareStatement( "kill ". $row['ID'] );
|
||||||
|
$oStatement->executeQuery();
|
||||||
|
}
|
||||||
|
|
||||||
if (! isset( $_SERVER['SERVER_NAME'] )) {
|
if (! isset( $_SERVER['SERVER_NAME'] )) {
|
||||||
CLI::logging( "Rows Processed ---> $this->rowsProcessed ..... \n" );
|
CLI::logging( "Rows Processed ---> $this->rowsProcessed ..... \n" );
|
||||||
CLI::logging( "Rows Clustered ---> $this->rowsClustered ..... \n" );
|
CLI::logging( "Rows Clustered ---> $this->rowsClustered ..... \n" );
|
||||||
|
|||||||
Reference in New Issue
Block a user