ext/pdo_sqlite/sqlite/src/prepare.c
/*
** Fill the InitData structure with an error message that indicates
** that the database is corrupt.
*/
Fill the InitData structure with an error message that indicates
that the database is corrupt.
Fill the InitData structure with an error message that indicates that the database is corrupt .
static void corruptSchema(InitData *pData, const char *zExtra){
  if( !sqlite3MallocFailed() ){
    sqlite3SetString(pData->pzErrMsg, "malformed database schema",
       zExtra!=0 && zExtra[0]!=0 ? " - " : (char*)0, zExtra, (char*)0);
  }
  pData->rc = SQLITE_CORRUPT;
}
static void corruptSchema ( InitData * pData , const char * zExtra ) { if ( ! sqlite3MallocFailed ( ) ) { sqlite3SetString ( pData -> pzErrMsg , " " , zExtra != 0 && zExtra [ 0 ] != 0 ? " " : ( char * ) 0 , zExtra , ( char * ) 0 ) ; } pData -> rc = SQLITE_CORRUPT ; }
Fill the InitData structure with an error message that indicates
that the database is corrupt.
Fill the InitData structure with an error message that indicates that the database is corrupt .