aboutsummaryrefslogtreecommitdiff
path: root/qlite/src/row.vala
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2017-03-09 21:46:16 +0100
committerMarvin W <git@larma.de>2017-03-10 17:33:27 +0100
commit93fd134a92fb50cc6e8a9b5db3d6f25e84e6fa10 (patch)
tree760dffada9b7d3515df5be306fe3a2ae9d848a64 /qlite/src/row.vala
parent9b8cf706d6b0ff83472af53c31b96c4c2f55f6b7 (diff)
downloaddino-93fd134a92fb50cc6e8a9b5db3d6f25e84e6fa10.tar.gz
dino-93fd134a92fb50cc6e8a9b5db3d6f25e84e6fa10.zip
Fix bugs and warnings in qlite
Diffstat (limited to 'qlite/src/row.vala')
-rw-r--r--qlite/src/row.vala8
1 files changed, 4 insertions, 4 deletions
diff --git a/qlite/src/row.vala b/qlite/src/row.vala
index 905d12a1..ff98405f 100644
--- a/qlite/src/row.vala
+++ b/qlite/src/row.vala
@@ -29,7 +29,7 @@ public class Row {
}
public string? get_text(string field) {
- if (text_map.contains(field)) {
+ if (text_map.has_key(field)) {
return text_map[field];
}
return null;
@@ -40,7 +40,7 @@ public class Row {
}
public bool has_integer(string field) {
- return int_map.contains(field);
+ return int_map.has_key(field);
}
public double get_real(string field) {
@@ -48,7 +48,7 @@ public class Row {
}
public bool has_real(string field) {
- return real_map.contains(field) && real_map[field] != null;
+ return real_map.has_key(field) && real_map[field] != null;
}
public class RowIterator {
@@ -58,7 +58,7 @@ public class Row {
this.stmt = query.prepare();
}
- public RowIterator(Database db, string sql, string[]? args = null) {
+ public RowIterator(Database db, string sql, string[]? args = null) throws DatabaseError {
this.stmt = db.prepare(sql);
if (args != null) {
for (int i = 0; i < args.length; i++) {