From 479ffc6ffdd6fb953073c64130c6b73b2a41520c Mon Sep 17 00:00:00 2001 From: Bahaa Alsharif Date: Sat, 18 May 2024 20:06:41 +0300 Subject: [PATCH] Replace SELECT * with specific fields (#225) --- DSL/Resql/get-scheduled-report.sql | 13 +++++++++++-- DSL/Resql/get-scheduled-reports.sql | 13 +++++++++++-- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/DSL/Resql/get-scheduled-report.sql b/DSL/Resql/get-scheduled-report.sql index ad04ed3f..fe424684 100644 --- a/DSL/Resql/get-scheduled-report.sql +++ b/DSL/Resql/get-scheduled-report.sql @@ -1,3 +1,12 @@ -SELECT * +SELECT + id, + name, + dataset_id, + period, + metrics, + created, + updated, + start_date, + end_date FROM scheduled_reports -WHERE dataset_id = :datasetId +WHERE dataset_id = :datasetId; diff --git a/DSL/Resql/get-scheduled-reports.sql b/DSL/Resql/get-scheduled-reports.sql index 4814e3cd..602d0940 100644 --- a/DSL/Resql/get-scheduled-reports.sql +++ b/DSL/Resql/get-scheduled-reports.sql @@ -1,2 +1,11 @@ -SELECT * -FROM scheduled_reports +SELECT + id, + name, + dataset_id, + period, + metrics, + created, + updated, + start_date, + end_date +FROM scheduled_reports;