aboutsummaryrefslogtreecommitdiff
path: root/qlite
diff options
context:
space:
mode:
authorSergey <sshikaree@zoho.com>2021-03-09 19:04:43 +0300
committerGitHub <noreply@github.com>2021-03-09 17:04:43 +0100
commitf4eba18ff67fb35bdedf6786c69655541327275f (patch)
tree502e981c90600855cbc41c95105dc3a675526b05 /qlite
parent64237a83a45ab949e28bdb0221663ac918a2c5d2 (diff)
downloaddino-f4eba18ff67fb35bdedf6786c69655541327275f.tar.gz
dino-f4eba18ff67fb35bdedf6786c69655541327275f.zip
Fix some typos in variable names (#1016)
* Fix WelcomePlaceholder typo * Fix DEFAULT_TABLE_NAME typo
Diffstat (limited to 'qlite')
-rw-r--r--qlite/src/column.vala52
1 files changed, 26 insertions, 26 deletions
diff --git a/qlite/src/column.vala b/qlite/src/column.vala
index 45385f38..36c8fcff 100644
--- a/qlite/src/column.vala
+++ b/qlite/src/column.vala
@@ -3,7 +3,7 @@ using Sqlite;
namespace Qlite {
public abstract class Column<T> {
- public const string DEFALT_TABLE_NAME = "";
+ public const string DEFAULT_TABLE_NAME = "";
public string name { get; private set; }
public string? default { get; set; }
@@ -16,9 +16,9 @@ public abstract class Column<T> {
public long max_version { get; set; default = long.MAX; }
internal Table table { get; set; }
- public abstract T get(Row row, string? table_name = DEFALT_TABLE_NAME);
+ public abstract T get(Row row, string? table_name = DEFAULT_TABLE_NAME);
- public virtual bool is_null(Row row, string? table_name = DEFALT_TABLE_NAME) {
+ public virtual bool is_null(Row row, string? table_name = DEFAULT_TABLE_NAME) {
return false;
}
@@ -65,12 +65,12 @@ public abstract class Column<T> {
base(name, INTEGER);
}
- public override int get(Row row, string? table_name = DEFALT_TABLE_NAME) {
- return (int) row.get_integer(name, table_name == DEFALT_TABLE_NAME ? table.name : table_name);
+ public override int get(Row row, string? table_name = DEFAULT_TABLE_NAME) {
+ return (int) row.get_integer(name, table_name == DEFAULT_TABLE_NAME ? table.name : table_name);
}
- public override bool is_null(Row row, string? table_name = DEFALT_TABLE_NAME) {
- return !row.has_integer(name, table_name == DEFALT_TABLE_NAME ? table.name : table_name);
+ public override bool is_null(Row row, string? table_name = DEFAULT_TABLE_NAME) {
+ return !row.has_integer(name, table_name == DEFAULT_TABLE_NAME ? table.name : table_name);
}
internal override void bind(Statement stmt, int index, int value) {
@@ -83,12 +83,12 @@ public abstract class Column<T> {
base(name, INTEGER);
}
- public override long get(Row row, string? table_name = DEFALT_TABLE_NAME) {
- return (long) row.get_integer(name, table_name == DEFALT_TABLE_NAME ? table.name : table_name);
+ public override long get(Row row, string? table_name = DEFAULT_TABLE_NAME) {
+ return (long) row.get_integer(name, table_name == DEFAULT_TABLE_NAME ? table.name : table_name);
}
- public override bool is_null(Row row, string? table_name = DEFALT_TABLE_NAME) {
- return !row.has_integer(name, table_name == DEFALT_TABLE_NAME ? table.name : table_name);
+ public override bool is_null(Row row, string? table_name = DEFAULT_TABLE_NAME) {
+ return !row.has_integer(name, table_name == DEFAULT_TABLE_NAME ? table.name : table_name);
}
internal override void bind(Statement stmt, int index, long value) {
@@ -103,12 +103,12 @@ public abstract class Column<T> {
public override bool not_null { get { return false; } set {} }
- public override double? get(Row row, string? table_name = DEFALT_TABLE_NAME) {
- return row.get_real(name, table_name == DEFALT_TABLE_NAME ? table.name : table_name);
+ public override double? get(Row row, string? table_name = DEFAULT_TABLE_NAME) {
+ return row.get_real(name, table_name == DEFAULT_TABLE_NAME ? table.name : table_name);
}
- public override bool is_null(Row row, string? table_name = DEFALT_TABLE_NAME) {
- return !row.has_real(name, table_name == DEFALT_TABLE_NAME ? table.name : table_name);
+ public override bool is_null(Row row, string? table_name = DEFAULT_TABLE_NAME) {
+ return !row.has_real(name, table_name == DEFAULT_TABLE_NAME ? table.name : table_name);
}
internal override void bind(Statement stmt, int index, double? value) {
@@ -121,12 +121,12 @@ public abstract class Column<T> {
base(name, TEXT);
}
- public override string? get(Row row, string? table_name = DEFALT_TABLE_NAME) {
- return row.get_text(name, table_name == DEFALT_TABLE_NAME ? table.name : table_name);
+ public override string? get(Row row, string? table_name = DEFAULT_TABLE_NAME) {
+ return row.get_text(name, table_name == DEFAULT_TABLE_NAME ? table.name : table_name);
}
- public override bool is_null(Row row, string? table_name = DEFALT_TABLE_NAME) {
- return get(row, table_name == DEFALT_TABLE_NAME ? table.name : table_name) == null;
+ public override bool is_null(Row row, string? table_name = DEFAULT_TABLE_NAME) {
+ return get(row, table_name == DEFAULT_TABLE_NAME ? table.name : table_name) == null;
}
internal override void bind(Statement stmt, int index, string? value) {
@@ -145,11 +145,11 @@ public abstract class Column<T> {
public override bool not_null { get { return true; } set {} }
- public override string get(Row row, string? table_name = DEFALT_TABLE_NAME) {
- return (!)row.get_text(name, table_name == DEFALT_TABLE_NAME ? table.name : table_name);
+ public override string get(Row row, string? table_name = DEFAULT_TABLE_NAME) {
+ return (!)row.get_text(name, table_name == DEFAULT_TABLE_NAME ? table.name : table_name);
}
- public override bool is_null(Row row, string? table_name = DEFALT_TABLE_NAME) {
+ public override bool is_null(Row row, string? table_name = DEFAULT_TABLE_NAME) {
return false;
}
@@ -163,8 +163,8 @@ public abstract class Column<T> {
base(name, TEXT);
}
- public override bool get(Row row, string? table_name = DEFALT_TABLE_NAME) {
- return row.get_text(name, table_name == DEFALT_TABLE_NAME ? table.name : table_name) == "1";
+ public override bool get(Row row, string? table_name = DEFAULT_TABLE_NAME) {
+ return row.get_text(name, table_name == DEFAULT_TABLE_NAME ? table.name : table_name) == "1";
}
internal override void bind(Statement stmt, int index, bool value) {
@@ -177,8 +177,8 @@ public abstract class Column<T> {
base(name, INTEGER);
}
- public override bool get(Row row, string? table_name = DEFALT_TABLE_NAME) {
- return row.get_integer(name, table_name == DEFALT_TABLE_NAME ? table.name : table_name) == 1;
+ public override bool get(Row row, string? table_name = DEFAULT_TABLE_NAME) {
+ return row.get_integer(name, table_name == DEFAULT_TABLE_NAME ? table.name : table_name) == 1;
}
internal override void bind(Statement stmt, int index, bool value) {