[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 18/20: DatabaseCore : clear prepare stmt
From: |
dwm |
Subject: |
[Noalyss-commit] [noalyss] 18/20: DatabaseCore : clear prepare stmt |
Date: |
Sun, 10 Dec 2023 03:22:24 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 26f08f46fbce264ff8b2e24e7eda3a205bbfdfbc
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Fri Dec 8 13:39:38 2023 +0100
DatabaseCore : clear prepare stmt
---
include/lib/database_core.class.php | 23 ++++++++++++++++++++++-
1 file changed, 22 insertions(+), 1 deletion(-)
diff --git a/include/lib/database_core.class.php
b/include/lib/database_core.class.php
index 7f35f178b..8f566d761 100644
--- a/include/lib/database_core.class.php
+++ b/include/lib/database_core.class.php
@@ -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(); */
- [Noalyss-commit] [noalyss] branch master updated (4bf2ca815 -> 98390d4d4), dwm, 2023/12/10
- [Noalyss-commit] [noalyss] 11/20: remove raise, dwm, 2023/12/10
- [Noalyss-commit] [noalyss] 05/20: Task #2309 mot de passe fort, dwm, 2023/12/10
- [Noalyss-commit] [noalyss] 13/20: FIX : when taken from git NOALYSS_VERSION is undefined, dwm, 2023/12/10
- [Noalyss-commit] [noalyss] 02/20: Improve Manage_Table : search button if modify or delete is on the left, dwm, 2023/12/10
- [Noalyss-commit] [noalyss] 18/20: DatabaseCore : clear prepare stmt,
dwm <=
- [Noalyss-commit] [noalyss] 19/20: Test disable xdebug, dwm, 2023/12/10
- [Noalyss-commit] [noalyss] 16/20: PRINTGL Main Ledger (GL) improve performance and code prepare the SQL , better filter for accounting, dwm, 2023/12/10
- [Noalyss-commit] [noalyss] 08/20: Improve documentation, dwm, 2023/12/10
- [Noalyss-commit] [noalyss] 01/20: PHP Compatibility 8.1, dwm, 2023/12/10
- [Noalyss-commit] [noalyss] 17/20: PRINTGL Main Ledger (GL), dwm, 2023/12/10
- [Noalyss-commit] [noalyss] 20/20: Fix merge issue, dwm, 2023/12/10
- [Noalyss-commit] [noalyss] 06/20: ergo, dwm, 2023/12/10
- [Noalyss-commit] [noalyss] 15/20: Improve DatabaseCore : fetch_all, dwm, 2023/12/10
- [Noalyss-commit] [noalyss] 10/20: Merge master, dwm, 2023/12/10
- [Noalyss-commit] [noalyss] 07/20: Update link to https://www.noalyss.eu instead of http, dwm, 2023/12/10