Fixed mysql-bug.

This commit is contained in:
Florian Kuepper committed 2012-12-17 21:51:31 +01:00
1 parent c0c1934747
commit a44e8d9927
1 file changed
+1 -1
+1 -1
View File
@@ -246,7 +246,7 @@ namespace Vocaluxe.Base
if (DataBaseSongID >= 0)
{
command.CommandText = "SELECT PlayerName, Score, Date, Difficulty, LineNr, id FROM Scores " +
"WHERE [SongID] = @SongID AND [Medley] = @Medley AND [Duet] = @Duet AND [ShortSong] = @ShortSong" +
"WHERE [SongID] = @SongID AND [Medley] = @Medley AND [Duet] = @Duet AND [ShortSong] = @ShortSong " +
"ORDER BY [Score] DESC";
command.Parameters.Add("@SongID", System.Data.DbType.Int32, 0).Value = DataBaseSongID;
command.Parameters.Add("@Medley", System.Data.DbType.Int32, 0).Value = Medley;