/ Check-in [ece48169]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add a test case for ticket [ae0f637bddc5290b44669e066a].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: ece481695fc3c959c3eba0fb485cdda43a10b06d17259b0121e15bfc5e8e8b9f
User & Date: drh 2019-05-01 19:01:27
Context
2019-05-02
00:52
Fix an issue (discovered by OSSFuzz) in the enhanced OP_Concat operator from check-in [713caa382cf7dd] earlier today. check-in: 3e897702 user: drh tags: trunk
2019-05-01
19:01
Add a test case for ticket [ae0f637bddc5290b44669e066a]. check-in: ece48169 user: drh tags: trunk
18:59
When values have real affinity and are converted into strings for CHECK constraints or index expressions, do the conversions into a real-number format even if the values are stored as integers for efficiency. This appears to fix ticket [ae0f637bddc5290b446]. check-in: 5997d075 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/index.test.

   743    743     DROP TABLE IF EXISTS t1;
   744    744     CREATE TABLE t1(a, b TEXT);
   745    745     CREATE UNIQUE INDEX IF NOT EXISTS x1 ON t1(b==0);
   746    746     CREATE INDEX IF NOT EXISTS x2 ON t1(a || 0) WHERE b;
   747    747     INSERT INTO t1(a,b) VALUES('a',1),('a',0);
   748    748     SELECT a, b, '|' FROM t1;
   749    749   } {a 1 | a 0 |}
   750         -   
          750  +
          751  +# 2019-05-10 ticket https://www.sqlite.org/src/info/ae0f637bddc5290b
          752  +do_execsql_test index-23.0 {
          753  +  DROP TABLE t1;
          754  +  CREATE TABLE t1(a TEXT, b REAL);
          755  +  CREATE UNIQUE INDEX t1x1 ON t1(a GLOB b);
          756  +  INSERT INTO t1(a,b) VALUES('0.0','1'),('1.0','1');
          757  +  SELECT * FROM t1;
          758  +  REINDEX;
          759  +} {0.0 1.0 1.0 1.0}
   751    760   
   752    761   finish_test