sqllogictest
Check-in [4a57829454]
Not logged in

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

Overview
Comment:Fixed issue with MD5 hash possibly not being reset in a labeled query returning no results.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:4a57829454ce7247df5475944992fdb29f22b2c3
User & Date: shaneh 2009-01-23 21:44:39
Original Comment: Fixed issued with MD5 hash possibly not being reset in a labeled query returning no results.
Context
2009-01-23
23:53
Added more 'commute' test cases. Added simple tests for DELETE. check-in: 6b97c59722 user: shaneh tags: trunk
21:44
Fixed issue with MD5 hash possibly not being reset in a labeled query returning no results. check-in: 4a57829454 user: shaneh tags: trunk
21:37
Fixed issue with responses from ODBC3 drivers. check-in: 01ecc32bef user: shaneh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/sqllogictest.c.

615
616
617
618
619
620
621

622
623
624
625
626
627
628
      }

      /* Hash the results if we are over the hash threshold or if we 
      ** there is a hash label */
      if( sScript.azToken[3][0]
       || (hashThreshold>0 && nResult>hashThreshold)
      ){

        for(i=0; i<nResult; i++){
          md5_add(azResult[i]);
          md5_add("\n");
        }
        sqlite3_snprintf(sizeof(zHash), zHash,
                         "%d values hashing to %s", nResult, md5_finish());
        sScript.azToken[3][20] = 0;







>







615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
      }

      /* Hash the results if we are over the hash threshold or if we 
      ** there is a hash label */
      if( sScript.azToken[3][0]
       || (hashThreshold>0 && nResult>hashThreshold)
      ){
        md5_add("");  /* make sure md5 is reset, even if no results */
        for(i=0; i<nResult; i++){
          md5_add(azResult[i]);
          md5_add("\n");
        }
        sqlite3_snprintf(sizeof(zHash), zHash,
                         "%d values hashing to %s", nResult, md5_finish());
        sScript.azToken[3][20] = 0;