Use prepared statements instead of string concatenated SQL everywhere - WIP (FINERACT-854)

This commit is contained in:
Joseph Makara
2021-04-13 06:10:51 +08:00
committed by Petri Tuomola
parent f96fc7df39
commit 859ce5af62
3 changed files with 10 additions and 5 deletions
@@ -18,5 +18,10 @@
--
-- two tables added: ReportCategoryList and FullReportList (FINERACT-1306)
INSERT INTO stretchy_report (report_name, report_type, report_category, report_sql, description, core_report, use_report)VALUES ("ReportCategoryList", 'Table', '(NULL)', '(NULL)', '(NULL)', 1, 1);
INSERT INTO stretchy_report (report_name, report_type, report_category, report_sql, description, core_report, use_report)VALUES ("FullReportList", 'Table', '(NULL)', '(NULL)', '(NULL)', 1, 1);
INSERT INTO stretchy_report (report_name, report_type, report_category, report_sql, description, core_report, use_report)
SELECT "ReportCategoryList", 'Table', '(NULL)', '(NULL)', '(NULL)', 1, 1
ON DUPLICATE key UPDATE report_name = 'ReportCategoryList';
INSERT INTO stretchy_report (report_name, report_type, report_category, report_sql, description, core_report, use_report)
SELECT "FullReportList", 'Table', '(NULL)', '(NULL)', '(NULL)', 1, 1
ON DUPLICATE key UPDATE report_name = 'FullReportList';