1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-05 04:30:38 +03:00

Change functions to handle NULLs correctly. Added the NULLIF() function. (CVS 590)

FossilOrigin-Name: 46ce1a9ab6e527958ebc757fa2175c488299cd84
This commit is contained in:
drh
2002-05-26 21:34:58 +00:00
parent f5905aa7be
commit 8912d106e1
4 changed files with 63 additions and 45 deletions

View File

@@ -14,7 +14,7 @@
** This file contains functions for allocating memory, comparing
** strings, and stuff like that.
**
** $Id: util.c,v 1.43 2002/05/10 13:14:07 drh Exp $
** $Id: util.c,v 1.44 2002/05/26 21:34:58 drh Exp $
*/
#include "sqliteInt.h"
#include <stdarg.h>
@@ -665,7 +665,7 @@ int sqliteCompare(const char *atext, const char *btext){
int result;
int isNumA, isNumB;
if( atext==0 ){
return -(btext!=0);
return -1;
}else if( btext==0 ){
return 1;
}