浏览代码

lib/srdb1: Changed OP_NEQ to use ANSI standard <>

- OP_NEQ was "!=" which works with many, but not all, SQL databases.
- One database this doesn't work with is PostgreSQL.
- <> is the standard and all databases should support it.
Peter Dunkley 13 年之前
父节点
当前提交
79e59ec116
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/srdb1/db_op.h

+ 1 - 1
lib/srdb1/db_op.h

@@ -41,7 +41,7 @@
 /** operator greater than equal */
 /** operator greater than equal */
 #define OP_GEQ ">="
 #define OP_GEQ ">="
 /** operator negation */
 /** operator negation */
-#define OP_NEQ "!="
+#define OP_NEQ "<>"
 /** bitwise AND */
 /** bitwise AND */
 #define OP_BITWISE_AND "&"
 #define OP_BITWISE_AND "&"