diff options
Diffstat (limited to 'res/res_config_sqlite.c')
-rw-r--r-- | res/res_config_sqlite.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/res/res_config_sqlite.c b/res/res_config_sqlite.c index c39629925..a7bf62cef 100644 --- a/res/res_config_sqlite.c +++ b/res/res_config_sqlite.c @@ -549,8 +549,7 @@ static char *sql_create_cdr_table = /*! * SQL query format to describe the table structure */ -static char *sql_table_structure = -"SELECT sql FROM sqlite_master WHERE type='table' AND tbl_name='%s'"; +#define sql_table_structure "SELECT sql FROM sqlite_master WHERE type='table' AND tbl_name='%s'" /*! * SQL query format to fetch the static configuration of a file. @@ -558,11 +557,11 @@ static char *sql_table_structure = * * \see add_cfg_entry() */ -static const char *sql_get_config_table = -"SELECT *" -" FROM '%q'" -" WHERE filename = '%q' AND commented = 0" -" ORDER BY cat_metric ASC, var_metric ASC;"; +#define sql_get_config_table \ + "SELECT *" \ + " FROM '%q'" \ + " WHERE filename = '%q' AND commented = 0" \ + " ORDER BY cat_metric ASC, var_metric ASC;" static void free_table(struct sqlite_cache_tables *tblptr) { |