diff options
author | drh <> | 2024-03-19 19:56:39 +0000 |
---|---|---|
committer | drh <> | 2024-03-19 19:56:39 +0000 |
commit | 36f01f2ee3da6698b85d29602a673232a9751fa4 (patch) | |
tree | 232f1d56c5ab52f91a78c5ef06c4e3486dc5d11a /src/util.c | |
parent | 4aa21492d134e4713e7d0b9a2fa0df69af0595f3 (diff) | |
parent | a10c2a9055fd7426cdd19a58c279d06cb794e027 (diff) | |
download | sqlite-36f01f2ee3da6698b85d29602a673232a9751fa4.tar.gz sqlite-36f01f2ee3da6698b85d29602a673232a9751fa4.zip |
Return the error "ambiguous column name: rowid", instead of "no such column: rowid", when a "rowid" reference is ambiguous.
FossilOrigin-Name: 0615bdae2dfc70c7e0416a28e89ffde31fa44ed4b3dac46e5ef20eed0d89e58c
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c index 8c9e980cd..3b10ba60a 100644 --- a/src/util.c +++ b/src/util.c @@ -68,6 +68,19 @@ int sqlite3IsNaN(double x){ } #endif /* SQLITE_OMIT_FLOATING_POINT */ +#ifndef SQLITE_OMIT_FLOATING_POINT +/* +** Return true if the floating point value is NaN or +Inf or -Inf. +*/ +int sqlite3IsOverflow(double x){ + int rc; /* The value return */ + u64 y; + memcpy(&y,&x,sizeof(y)); + rc = IsOvfl(y); + return rc; +} +#endif /* SQLITE_OMIT_FLOATING_POINT */ + /* ** Compute a string length that is limited to what can be stored in ** lower 30 bits of a 32-bit signed integer. |