ext/pdo_sqlite/sqlite/src/prepare.c
/*
** This routine is a no-op if the database schema is already initialised.
** Otherwise, the schema is loaded. An error code is returned.
*/
This routine is a no-op if the database schema is already initialised.
Otherwise, the schema is loaded. An error code is returned.
This routine is a no - op if the database schema is already initialised . Otherwise the schema is loaded . An error code is returned .
int sqlite3ReadSchema(Parse *pParse){
  int rc = SQLITE_OK;
  sqlite3 *db = pParse->db;
  if( !db->init.busy ){
    rc = sqlite3Init(db, &pParse->zErrMsg);
  }
  if( rc!=SQLITE_OK ){
    pParse->rc = rc;
    pParse->nErr++;
  }
  return rc;
}
int sqlite3ReadSchema ( Parse * pParse ) { int rc = SQLITE_OK ; sqlite3 * db = pParse -> db ; if ( ! db -> init . busy ) { rc = sqlite3Init ( db , & pParse -> zErrMsg ) ; } if ( rc != SQLITE_OK ) { pParse -> rc = rc ; pParse -> nErr ++ ; } return rc ; }
This routine is a no-op if the database schema is already initialised.
This routine is a no - op if the database schema is already initialised .