Remove defaults for SQL parameters

This commit is contained in:
Mr-DaveDev
2017-12-17 11:21:24 -07:00
committed by Mr-Dave
parent 804c28cb04
commit 35cd0b37ac
3 changed files with 4 additions and 6 deletions

4
conf.c
View File

@@ -119,8 +119,8 @@ struct config conf_template = {
.sql_log_snapshot = 1,
.sql_log_movie = 0,
.sql_log_timelapse = 0,
.sql_query_start = DEF_SQL_QUERY_START,
.sql_query = DEF_SQL_QUERY,
.sql_query_start = NULL,
.sql_query = NULL,
.database_type = NULL,
.database_dbname = NULL,
.database_host = "localhost",

View File

@@ -667,6 +667,8 @@ quiet on
# insert into security(camera, filename, frame, file_type, time_stamp, text_event) values('%t', '%f', '%q', '%n', '%Y-%m-%d %T', '%C')
; sql_query insert into security(camera, filename, frame, file_type, time_stamp, event_time_stamp) values('%t', '%f', '%q', '%n', '%Y-%m-%d %T', '%C')
# SQL query to execute at the start of an event to provide the dbeventid number
; sql_query_start
############################################################
# Database Options

View File

@@ -182,10 +182,6 @@ struct image_data;
#define DEF_TIMELAPSE_MODE "daily"
/* Do not break this line into two or more. Must be ONE line */
#define DEF_SQL_QUERY_START "sql_query_start insert into security_events(camera, event_time_stamp) values('%t', '%Y-%m-%d %T')"
#define DEF_SQL_QUERY "sql_query insert into security_file(camera, filename, frame, file_type, time_stamp) values('%t', '%f', '%q', '%n', '%Y-%m-%d %T')"
/* OUTPUT Image types */
#define IMAGE_TYPE_JPEG 0
#define IMAGE_TYPE_PPM 1