diff options
author | drh <drh@noemail.net> | 2014-04-18 01:10:05 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2014-04-18 01:10:05 +0000 |
commit | a1a483d54e39272c16b5fa94e97578ccddee6a8a (patch) | |
tree | b28bb3ea6cdff4cdefa08c26c870e415e996c730 /src/main.c | |
parent | 652cc4b6dca02426e8d375a962bf8417850d9f7a (diff) | |
parent | 71794dbaeb73f594ef704fa265715b207f98edc7 (diff) | |
download | sqlite-a1a483d54e39272c16b5fa94e97578ccddee6a8a.tar.gz sqlite-a1a483d54e39272c16b5fa94e97578ccddee6a8a.zip |
Merge recent trunk changes into sessions.
FossilOrigin-Name: 95e77efe076ab421bd246119c47dba5dacf9d087
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index eff683b5c..65fce475c 100644 --- a/src/main.c +++ b/src/main.c @@ -3226,6 +3226,22 @@ int sqlite3_test_control(int op, ...){ break; } + /* + ** sqlite3_test_control(SQLITE_TESTCTRL_BYTEORDER); + ** + ** The integer returned reveals the byte-order of the computer on which + ** SQLite is running: + ** + ** 1 big-endian, determined at run-time + ** 10 little-endian, determined at run-time + ** 432101 big-endian, determined at compile-time + ** 123410 little-endian, determined at compile-time + */ + case SQLITE_TESTCTRL_BYTEORDER: { + rc = SQLITE_BYTEORDER*100 + SQLITE_LITTLEENDIAN*10 + SQLITE_BIGENDIAN; + break; + } + /* sqlite3_test_control(SQLITE_TESTCTRL_RESERVE, sqlite3 *db, int N) ** ** Set the nReserve size to N for the main database on the database |