/ Check-in [037da798]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

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

Overview
Comment:Do not place arbitrary restrictions on the length of the failure message for a uniqueness constraint.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 037da798fa5510ba7c776831ebcd683a85dca28e25bc657ff17bb2b08c3d406e
User & Date: drh 2019-04-10 00:58:07
Context
2019-04-10
12:02
Change the name of some internal testing interfaces to avoid a name conflict in AIX. check-in: c1cae7e7 user: drh tags: trunk
00:58
Do not place arbitrary restrictions on the length of the failure message for a uniqueness constraint. check-in: 037da798 user: drh tags: trunk
2019-04-09
21:37
New test case for SQLITE_TOOBIG errors. check-in: 4c77fbbe user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/build.c.

  4394   4394     Index *pIdx       /* The index that triggers the constraint */
  4395   4395   ){
  4396   4396     char *zErr;
  4397   4397     int j;
  4398   4398     StrAccum errMsg;
  4399   4399     Table *pTab = pIdx->pTable;
  4400   4400   
  4401         -  sqlite3StrAccumInit(&errMsg, pParse->db, 0, 0, 200);
         4401  +  sqlite3StrAccumInit(&errMsg, pParse->db, 0, 0, 
         4402  +                      pParse->db->aLimit[SQLITE_LIMIT_LENGTH]);
  4402   4403     if( pIdx->aColExpr ){
  4403   4404       sqlite3_str_appendf(&errMsg, "index '%q'", pIdx->zName);
  4404   4405     }else{
  4405   4406       for(j=0; j<pIdx->nKeyCol; j++){
  4406   4407         char *zCol;
  4407   4408         assert( pIdx->aiColumn[j]>=0 );
  4408   4409         zCol = pTab->aCol[pIdx->aiColumn[j]].zName;