diff options
| -rw-r--r-- | errors.zig | 3 |
1 files changed, 0 insertions, 3 deletions
| @@ -129,9 +129,6 @@ pub const Error = SQLiteError || | |||
| 129 | SQLiteExtendedConstraintError; | 129 | SQLiteExtendedConstraintError; |
| 130 | 130 | ||
| 131 | pub fn errorFromResultCode(code: c_int) Error { | 131 | pub 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) { |