Opened 10 years ago
Closed 10 years ago
Last modified 10 years ago
#12161 closed Bug Report - General (fixed)
mythcommflag - throwing database errors
Reported by: | Owned by: | JYA | |
---|---|---|---|
Priority: | major | Milestone: | 0.27.2 |
Component: | MythTV - Mythcommflag | Version: | 0.27-fixes |
Severity: | high | Keywords: | |
Cc: | Ticket locked: | no |
Description
When this command is executed : mythcommflag --file $NewName? --rebuild --loglevel info --syslog local7 >> $LOGFILE 2>&1
Getting these errors thrown:
2014-05-30 11:15:50.815101 E Error preparing query: INSERT INTO recordedseek (chanid, starttime, type, mark, offset) VALUES 2014-05-30 11:15:50.815129 E Driver error was [2/1064]: QMYSQL3: Unable to prepare statement Database error was: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near at line 1
2014-05-30 11:15:50.815303 E DB Error (delta position map insert): Query was: INSERT INTO recordedseek (chanid, starttime, type, mark, offset) VALUES Driver error was [2/1064]: QMYSQL: Unable to execute query Database error was: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near at line 1
2014-05-30 11:15:50.815462 E Error preparing query: INSERT INTO recordedseek (chanid, starttime, type, mark, offset) VALUES 2014-05-30 11:15:50.815479 E Driver error was [2/1064]: QMYSQL3: Unable to prepare statement Database error was: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near at line 1
2014-05-30 11:15:50.815602 E DB Error (delta position map insert): Query was: INSERT INTO recordedseek (chanid, starttime, type, mark, offset) VALUES Driver error was [2/1064]: QMYSQL: Unable to execute query Database error was: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near at line 1
Started after last update
This version of mythcommflag : mythutil version: fixes/0.27 [v0.27.1-7-g41d04b6] Last known working version of mythcommflag :mythutil version: fixes/0.27 [v0.27-232-gf4825ca]
Attachments (5)
Change History (13)
Changed 10 years ago by
Attachment: | roku-nocommercials-2014-05-26.20.00.28.log added |
---|
Changed 10 years ago by
Attachment: | roku-nocommercials-2014-05-26.20.00.28.2.log added |
---|
Log file WITHOUT error
Changed 10 years ago by
Attachment: | roku-nocommercials-2014-05-26.20.00.28.3.log added |
---|
Log file WITHOUT error
Changed 10 years ago by
Attachment: | roku-nocommercials-2014-05-30.10.30.39.log added |
---|
Log file WITH error
Changed 10 years ago by
Attachment: | roku-nocommercials-2014-05-31.09.30.45.log added |
---|
Log file WITH error
comment:2 Changed 10 years ago by
Owner: | changed from cpinkham to JYA |
---|---|
Status: | new → accepted |
comment:3 Changed 10 years ago by
please try the following patch:
diff --git a/mythtv/libs/libmyth/programinfo.cpp b/mythtv/libs/libmyth/programinfo.cpp index 35e7ff8..8c891f0 100644 --- a/mythtv/libs/libmyth/programinfo.cpp +++ b/mythtv/libs/libmyth/programinfo.cpp @@ -3640,6 +3640,9 @@ void ProgramInfo::SavePositionMap( return; } + if (posMap.isEmpty()) + return; + MSqlQuery query(MSqlQuery::InitCon()); QString comp; @@ -3738,6 +3741,9 @@ void ProgramInfo::SavePositionMap( void ProgramInfo::SavePositionMapDelta( frm_pos_map_t &posMap, MarkTypes type) const { + if (posMap.isEmpty()) + return; + if (positionMapDBReplacement) { QMutexLocker locker(positionMapDBReplacement->lock);
comment:4 Changed 10 years ago by
Not sure how you are expecting me to take this patch.
At this time - I have not downloaded any source and done local compiles and installations.
Been using the apt-get - and pulling the fixes as they are released in : mythbuntu-0_27-precise.list
comment:5 Changed 10 years ago by
you or someone else will have to compile from source...
its not complicated
comment:6 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
comment:8 Changed 10 years ago by
Milestone: | unknown → 0.27.2 |
---|
Log file WITHOUT error