IMDb SQLite: movie_aka may return null
authorPhilipp Zabel <philipp.zabel@gmail.com>
Sat, 30 Jan 2010 11:30:42 +0000 (12:30 +0100)
committerPhilipp Zabel <philipp.zabel@gmail.com>
Sat, 30 Jan 2010 11:30:42 +0000 (12:30 +0100)
src/imdb/imdb-sqlite.vala

index 32ac41c..b53262a 100644 (file)
@@ -358,7 +358,7 @@ class IMDbSqlite : Object {
                return n;
        }
 
-       private string movie_aka (string title, string match) {
+       private string? movie_aka (string title, string match) {
                string sql = "SELECT Aka FROM Akas WHERE (TitleID = (SELECT rowid FROM Movies WHERE Title = \"%s\") AND Aka %s) LIMIT 1;".printf (title, match);
                Statement stmt;
                int rc;