Permalink
Browse files

Merge pull request #3987 from xhaggi/fix-sql-syntax

[pvr] fix: syntax error in sql statement (duplicate AND)
  • Loading branch information...
2 parents 095bb25 + f66381c commit c658b3c0d67c5eedc260cb325a410f89f1eb4d66 @xhaggi xhaggi committed Jan 8, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/pvr/PVRDatabase.cpp
View
@@ -598,7 +598,7 @@ bool CPVRDatabase::DeleteChannelsFromGroup(const CPVRChannelGroup &group, const
Filter filter;
filter.AppendWhere(PrepareSQL("idGroup = %u", group.GroupID()));
- filter.AppendWhere(PrepareSQL("AND idChannel IN (%s)", strChannelsToDelete.c_str()));
+ filter.AppendWhere(PrepareSQL("idChannel IN (%s)", strChannelsToDelete.c_str()));
bDelete = DeleteValues("map_channelgroups_channels", filter) && bDelete;
}

0 comments on commit c658b3c

Please sign in to comment.