[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/sqlite3 4e111c937f 54/62: fixed a bug in NIL equality chec
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/sqlite3 4e111c937f 54/62: fixed a bug in NIL equality check |
Date: |
Tue, 14 Mar 2023 11:01:48 -0400 (EDT) |
branch: elpa/sqlite3
commit 4e111c937f08c6bb9d7196e783842df7fdffc56d
Author: Peking Duck <pekingduck@users.noreply.github.com>
Commit: Peking Duck <pekingduck@users.noreply.github.com>
fixed a bug in NIL equality check
---
sqlite3-api.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sqlite3-api.c b/sqlite3-api.c
index 2dfc5714c2..129d996e6c 100644
--- a/sqlite3-api.c
+++ b/sqlite3-api.c
@@ -33,6 +33,8 @@ int plugin_is_GPL_compatible;
(env)->eq((env), (env)->type_of((env), (val)), (env)->intern((env), "float"))
#define IS_STRING(env, val) \
(env)->eq((env), (env)->type_of((env), (val)), (env)->intern((env),
"string"))
+#define IS_NIL(env, val) \
+ (env)->eq((env), (val), (env)->intern((env), "nil"))
#define WARN(env, ...) message(env, SQLITE3_LOG_LEVEL_WARN, __VA_ARGS__)
#define DEBUG(env, ...) message(env, SQLITE3_LOG_LEVEL_DEBUG, __VA_ARGS__)
@@ -355,7 +357,7 @@ static emacs_value sqlite3_api_bind_multi(
rv = sqlite3_bind_text(stmt, i, txt, -1, SQLITE_TRANSIENT);
FREE(txt);
NON_LOCAL_EXIT_CHECK(env);
- } else if (args[i] == SYM(env, "nil")) {
+ } else if (IS_NIL(env, args[i])) {
rv = sqlite3_bind_null(stmt, i);
NON_LOCAL_EXIT_CHECK(env);
} else {
- [nongnu] elpa/sqlite3 89512b336a 23/62: removed package-install.el & install.el, (continued)
- [nongnu] elpa/sqlite3 89512b336a 23/62: removed package-install.el & install.el, ELPA Syncer, 2023/03/14
- [nongnu] elpa/sqlite3 0d4ca93830 33/62: Removed gcc warnings, ELPA Syncer, 2023/03/14
- [nongnu] elpa/sqlite3 800a4fc494 40/62: Add sqlite3.el to make installable from Melpa, ELPA Syncer, 2023/03/14
- [nongnu] elpa/sqlite3 fd4188756e 45/62: Fixed inlined src blocks, ELPA Syncer, 2023/03/14
- [nongnu] elpa/sqlite3 40e3c9b6a8 61/62: Compile without prompting in non-interactive session, ELPA Syncer, 2023/03/14
- [nongnu] elpa/sqlite3 0cb2e25155 22/62: doc updated, ELPA Syncer, 2023/03/14
- [nongnu] elpa/sqlite3 84bd83a7fa 42/62: Removed unused codes from consts.c, ELPA Syncer, 2023/03/14
- [nongnu] elpa/sqlite3 95abc25cc6 48/62: package name: sqlite3-api to sqlite3, ELPA Syncer, 2023/03/14
- [nongnu] elpa/sqlite3 88dfeae8f9 50/62: Merge pull request #3 from reflektoin/patch-1, ELPA Syncer, 2023/03/14
- [nongnu] elpa/sqlite3 7cb4b660fe 53/62: Update README.org, ELPA Syncer, 2023/03/14
- [nongnu] elpa/sqlite3 4e111c937f 54/62: fixed a bug in NIL equality check,
ELPA Syncer <=