DatabaseCore : clear prepare stmt
This commit is contained in:
parent
ba759507b0
commit
26f08f46fb
1 changed files with 22 additions and 1 deletions
|
|
@ -1024,7 +1024,28 @@ class DatabaseCore
|
|||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @brief clear a prepare stmt
|
||||
* @see DatabaseCore::is_prepare
|
||||
* @see DatabaseCore::execute
|
||||
* @see DatabaseCore::prepare
|
||||
* @param $sql_name name of the prepare SQL
|
||||
*/
|
||||
function clear_prepare($sql_name)
|
||||
{
|
||||
pg_exec($this->db,sprintf('DEALLOCATE "%s"'),DatabaseCore::escape_string($sql_name));
|
||||
}
|
||||
/**
|
||||
* @brief clear all prepare stmt
|
||||
* @see DatabaseCore::is_prepare
|
||||
* @see DatabaseCore::execute
|
||||
* @see DatabaseCore::prepare
|
||||
*/
|
||||
function clear_all_prepare()
|
||||
{
|
||||
pg_exec($this->db,'DEALLOCATE ALL');
|
||||
}
|
||||
}
|
||||
|
||||
/* test::test_me(); */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue