Re: [sqlite] Compile error with SQLITE_OMIT_CTE (3.28)

2020-01-31 Thread Jens Alfke


> On Jan 31, 2020, at 9:55 AM, Jens Alfke  wrote:
> 
> If I define SQLITE_OMIT_CTE and compile the amalgamation (3.28.0), the build 
> fails due to two remaining calls to 
> sqlite3WithAdd() in the parser. This function is neither declared nor 
> implemented when SQLITE_OMIT_CTE is defined.

Never mind — I had somehow overlooked the bold italic "Important Note:" warning 
in the same section that lists the OMIT flags —

Important Note: The SQLITE_OMIT_* options may not work with the 
amalgamation. SQLITE_OMIT_* compile-time options usually work correctly only 
when SQLite is built from canonical source files.

Sorry for the noise :)

—Jens
___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


[sqlite] Compile error with SQLITE_OMIT_CTE (3.28)

2020-01-31 Thread Jens Alfke
If I define SQLITE_OMIT_CTE and compile the amalgamation (3.28.0), the build 
fails due to two remaining calls to 
sqlite3WithAdd() in the parser. This function is neither declared nor 
implemented when SQLITE_OMIT_CTE is defined.

  case 286: /* wqlist ::= nm eidlist_opt AS LP select RP */
{
  yymsp[-5].minor.yy59 = sqlite3WithAdd(pParse, 0, [-5].minor.yy0, 
yymsp[-4].minor.yy434, yymsp[-1].minor.yy457); /*A-overwrites-X*/
}
break;
  case 287: /* wqlist ::= wqlist COMMA nm eidlist_opt AS LP select RP */
{
  yymsp[-7].minor.yy59 = sqlite3WithAdd(pParse, yymsp[-7].minor.yy59, 
[-5].minor.yy0, yymsp[-4].minor.yy434, yymsp[-1].minor.yy457);
}

—Jens
___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users