/ Check-in [1c086dee]
Login

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

Overview
Comment:A better fix for the group_concat() problem.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 1c086deebd0eb442918972e4b9185a5a0db3b8c3
User & Date: drh 2014-05-07 20:24:00
Context
2014-05-07
20:33
Remove a superfluous variable initialization. check-in: 68766f83 user: drh tags: trunk
20:24
A better fix for the group_concat() problem. check-in: 1c086dee user: drh tags: trunk
19:59
Fix the way parenthesis in MATCH expressions are handled by FTS if the tokenizer considers them to be token characters. check-in: e21bf7a2 user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/func.c.

  1537   1537           zSep = ",";
  1538   1538           nSep = 1;
  1539   1539         }
  1540   1540         if( nSep ) sqlite3StrAccumAppend(pAccum, zSep, nSep);
  1541   1541       }
  1542   1542       zVal = (char*)sqlite3_value_text(argv[0]);
  1543   1543       nVal = sqlite3_value_bytes(argv[0]);
  1544         -    if( nVal || (zVal="", firstTerm) ){
  1545         -      sqlite3StrAccumAppend(pAccum, zVal, nVal);
  1546         -    }
         1544  +    if( zVal ) sqlite3StrAccumAppend(pAccum, zVal, nVal);
  1547   1545     }
  1548   1546   }
  1549   1547   static void groupConcatFinalize(sqlite3_context *context){
  1550   1548     StrAccum *pAccum;
  1551   1549     pAccum = sqlite3_aggregate_context(context, 0);
  1552   1550     if( pAccum ){
  1553   1551       if( pAccum->accError==STRACCUM_TOOBIG ){