From 30b5612691f243328739c810db1a6f0ad256c85d Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Sat, 28 Sep 2019 12:57:00 -0400 Subject: [PATCH] fix case of sql --- src/zm_event.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zm_event.cpp b/src/zm_event.cpp index a4117729c..e12b76327 100644 --- a/src/zm_event.cpp +++ b/src/zm_event.cpp @@ -448,7 +448,7 @@ void Event::AddFrames( int n_frames, Image **images, struct timeval **timestamps void Event::AddFramesInternal( int n_frames, int start_frame, Image **images, struct timeval **timestamps ) { static char sql[ZM_SQL_LGE_BUFSIZ]; - strncpy(sql, "insert into Frames ( EventId, FrameId, TimeStamp, Delta ) values ", sizeof(sql)); + strncpy(sql, "INSERT INTO Frames ( EventId, FrameId, TimeStamp, Delta ) VALUES ", sizeof(sql)); int frameCount = 0; for ( int i = start_frame; i < n_frames && i - start_frame < ZM_SQL_BATCH_SIZE; i++ ) { if ( timestamps[i]->tv_sec <= 0 ) {