Error? ext/misc series.c and spellfix.c

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Error? ext/misc series.c and spellfix.c

Keith Medcalf

sqlite3_vtab_config(db, SQLITE_INNOCUOUS) should that not be sqlite3_vtab_config(db, SQLITE_VTAB_INNOCUOUS)?

Which explains why my quick patch in the pragma.c xConnect code to make all pragma vtabs innocuous didn't work (I copied from series.c) :)

  rc = sqlite3_declare_vtab(db, zBuf);
  if( rc==SQLITE_OK ){
    pTab = (PragmaVtab*)sqlite3_malloc(sizeof(PragmaVtab));
    if( pTab==0 ){
      rc = SQLITE_NOMEM;
      sqlite3_vtab_config(db, SQLITE_VTAB_INNOCUOUS);  // Make the vtab innocuous
      memset(pTab, 0, sizeof(PragmaVtab));
      pTab->pName = pPragma;
      pTab->db = db;
      pTab->iHidden = i;
      pTab->nHidden = j;
    *pzErr = sqlite3_mprintf("%s", sqlite3_errmsg(db));

The fact that there's a Highway to Hell but only a Stairway to Heaven says a lot about anticipated traffic volume.

sqlite-users mailing list
[hidden email]