summaryrefslogtreecommitdiff
path: root/errors.zig
diff options
context:
space:
mode:
Diffstat (limited to 'errors.zig')
-rw-r--r--errors.zig3
1 files changed, 0 insertions, 3 deletions
diff --git a/errors.zig b/errors.zig
index 69b9410..95faa62 100644
--- a/errors.zig
+++ b/errors.zig
@@ -129,9 +129,6 @@ pub const Error = SQLiteError ||
129 SQLiteExtendedConstraintError; 129 SQLiteExtendedConstraintError;
130 130
131pub fn errorFromResultCode(code: c_int) Error { 131pub fn errorFromResultCode(code: c_int) Error {
132 // TODO(vincent): can we do something with comptime here ?
133 // The version number is always static and defined by sqlite.
134
135 // These errors are only available since 3.22.0. 132 // These errors are only available since 3.22.0.
136 if (c.SQLITE_VERSION_NUMBER >= 3022000) { 133 if (c.SQLITE_VERSION_NUMBER >= 3022000) {
137 switch (code) { 134 switch (code) {