Commit Graph

33 Commits

Author SHA1 Message Date
dan
07d0f15e93 Fix incompatibilities between the "sqldiff --changeset" command and the
sessions module. Specifically, allow sessions to process changesets containing
tables with zero operations on them and have sqldiff output the expected
output for tables with multi-column primary keys.

FossilOrigin-Name: 0bb23c48064cc64134697469f3f4d2d3610b9e6c7a0dc54a3c47a00bd6c2a860
2017-05-22 18:09:00 +00:00
dan
12c56aa452 Fix a bug in sqldiff causing it to confuse blobs zero bytes in size with NULL values.
FossilOrigin-Name: 264e9c75875796cad773d39b775d4604546bc57a
2016-09-12 14:23:51 +00:00
dan
e5a0cfa161 Have "sqldiff --rbu" ignore rows with NULL values in primary key fields. RBU can't handle such rows and the documentation already says sqldiff ignores them. Because the code now uses "=" instead of "IS" to filter on primary key columns, diffs on virtual tables are faster now too.
FossilOrigin-Name: f4ba894a86aa195bcbe2fa69e91cd870ec3fb577
2016-09-01 14:03:28 +00:00
dan
6ff4627d5d Fix a 1 byte buffer overwrite in the "sqldiff --rbu" command.
FossilOrigin-Name: ab83d7077da80ddbcf399d0797d79e964dc64f0e
2016-08-11 09:55:55 +00:00
dan
12ca5ac3d2 Fix a problem with upper case module names in the "sqldiff --vtab" command.
FossilOrigin-Name: 87e25fc472604b3978811be53991104c665a95e7
2016-07-22 10:09:26 +00:00
drh
5225449e5b In the sqldiff program, make sure the first argument to the db_prepare()
utility function is always a valid format string.

FossilOrigin-Name: 8bb8d886ffa948cd7bc66c8c62da76bce233be2e
2016-07-08 02:14:24 +00:00
dan
9c987a833c Update the sqldiff utility so that if the --vtab switch is specified "rtree", "fts3", "fts4" and "fts5" tables are diff'd directly and the underlying real database tables ignored. Without this switch, all virtual tables are ignored and the diff is performed on the underlying real tables.
FossilOrigin-Name: 5d0a9d4c45730e47576bc77373fa7075a74051a5
2016-06-21 10:34:41 +00:00
dan
febfe02300 Update the sqldiff tool so that it generates an rbu_count table.
FossilOrigin-Name: 1f7afb6e9be9f549a91bf2ab492df15698df89fd
2016-03-19 16:21:26 +00:00
drh
9493cafe6f Fix harmless compiler warnings that arise with -DSQLITE_OMIT_LOAD_EXTENSION
FossilOrigin-Name: 65ba2f0b465a1493de6e467f55e0300ac3fb08e1
2016-03-17 23:16:37 +00:00
drh
62e63bb9a9 Fix harmless compiler warnings in sqldiff.c.
FossilOrigin-Name: 74808a79ea3194f6cc00084b9dccc380846a6051
2016-01-14 12:23:16 +00:00
drh
06db66f989 Fix the sqldiff utility program so that it works for schemas that have
tables with zero-length column names.

FossilOrigin-Name: 64263ccb8f9835c615242de6e28db24f953422fa
2015-11-29 21:46:19 +00:00
drh
05d4ebf6c3 Add the --transaction option to the sqldiff tool.
FossilOrigin-Name: 8882d1f3ef0fc53d7c19918c3af43c5bdd79e88f
2015-11-13 13:15:42 +00:00
drh
7450494c50 Fix incorrect WHERE clause in sqldiff, as reported on the mailing list
by Youcef Hilem.

FossilOrigin-Name: e0ed4c3e376248dfbf903e4b5845f910824fa6c6
2015-11-09 12:47:04 +00:00
drh
edd2260b40 Enhance the sqldiff utility to deal gracefully with ALTER TABLE ADD COLUMN.
FossilOrigin-Name: 7ea036ac37397ed8f6a0fa9f5bfc0994364b53dc
2015-11-07 18:32:17 +00:00
mistachkin
1abbe28884 Fix compiler warnings in the sqldiff tool seen with MSVC.
FossilOrigin-Name: 072279d458fbb74a812a9ee723041d6b7c662a88
2015-08-20 21:09:32 +00:00
drh
027616d4ce Fix compiler warnings and remove unreachable code.
FossilOrigin-Name: be190fe7826d157fc5acd84210095725b059e4f6
2015-08-08 22:47:47 +00:00
dan
a9ca8afef5 Add support for "fossil deltas" to RBU and "sqldiff --rbu".
FossilOrigin-Name: e26ef165fe2f7524684af0d269d38475ea8b9489
2015-07-31 19:52:03 +00:00
dan
dd688e7970 Fix a problem causing [sqldiff --rbu] to fail on tables for which all columns are part of the PRIMARY KEY.
FossilOrigin-Name: 93449e7046d60cad020ca439ded82e759c2e3cd9
2015-07-31 15:13:29 +00:00
dan
994618521c Add the --rbu switch to the "sqldiff" utility.
FossilOrigin-Name: 098bea26da4533d9ad97a85687cca56fb0d764a4
2015-07-30 20:26:16 +00:00
drh
6582ae520f Try to get recent sqlite3_analyzer and sqldiff tests working for all
tested combinations of compile-time options, especially
SQLITE_OMIT_VIRTUALTABLE and SQLITE_OMIT_LOAD_EXTENSION.

FossilOrigin-Name: 07c7d3925cbcf44c2f606c7f016ec56304e0ca24
2015-05-12 12:24:50 +00:00
drh
aa62e48cab Fix sqldiff.exe so that it always runs in single-thread mode.
FossilOrigin-Name: c223910e726131d7b718b556c83df5faa723369d
2015-05-12 00:46:40 +00:00
drh
33aa4dbe44 Fix a bug in --changeset output for sqldiff.exe for floating-point values.
Also fix harmless compiler warnings in sqldiff.exe.

FossilOrigin-Name: 9f428530f9a6cb54f0a2fc3e666c38c7c093558a
2015-05-04 15:04:47 +00:00
drh
9a9219ff24 Add the --lib option to the sqldiff.exe command-line utility.
FossilOrigin-Name: a117e8f6bd60ed7f6e4cdcd2ee8d624fe040f7ab
2015-05-04 13:25:56 +00:00
drh
b3f3d64b4b Fix compiler warnings in sqldiff.
FossilOrigin-Name: 5f48d6f6c0a573ecc5bd42cb6c019288e22d295f
2015-04-25 18:39:21 +00:00
drh
50be9c4b28 Fix the header comment on the sqldiff utility program. No code changes.
FossilOrigin-Name: b355ca3a3f617cd6d4c45c8e27ecd75d9e68b792
2015-04-17 12:16:09 +00:00
drh
8a1cd765df Add the --summary option to the sqldiff command-line tool.
FossilOrigin-Name: 88b22761c59b06fa86c57f8d22a46046ad17d5d5
2015-04-14 19:01:08 +00:00
drh
6e42ce44db The --changeset option now appears to be working.
FossilOrigin-Name: 1a2e2803920dcf64190d81d8a487d6c3c9bb28ee
2015-04-11 13:48:01 +00:00
drh
697e5dba80 First complete attempt to generate a working changeset. Still contains bugs.
FossilOrigin-Name: 5611fa9bd5b8fd762d16ce9b0853c2e779a1a1b7
2015-04-11 12:07:40 +00:00
drh
83e63dc385 Work toward adding the --changeset option to the sqldiff utility program.
Changes are incomplete.  This is an incremental check-in.

FossilOrigin-Name: 463e38d765f9d055b63792a8ea15c3782657b07f
2015-04-10 19:41:18 +00:00
drh
2139d252dd Fix incorrect column names in UPDATE statements generated by the sqldiff
utility.

FossilOrigin-Name: ee53b46011852e27db23708387fe1e918cc8284c
2015-04-09 19:39:54 +00:00
drh
a37591cdd1 Add the --primarykey option to the sqldiff tool, which causes it to use the
schema-defined PRIMARY KEY.

FossilOrigin-Name: 5063f9070afde9374ea0f2bc338fee840d8b3dd4
2015-04-09 18:14:03 +00:00
drh
39b355c70f Fix comment typos in the sqldiff.c utility program.
FossilOrigin-Name: 32ab2bb990746a84f5944e3cf428fb2dff3628da
2015-04-09 13:40:18 +00:00
drh
d62c0f4c2d Add the "sqldiff" utility program.
FossilOrigin-Name: 88da5bf5d2c4f848dbd4b5ffb1539abfbbdaff18
2015-04-09 13:34:29 +00:00