ext/pdo_sqlite/sqlite/src/prepare.c
/*
** Two versions of the official API.  Legacy and new use.  In the legacy
** version, the original SQL text is not saved in the prepared statement
** and so if a schema change occurs, SQLITE_SCHEMA is returned by
** sqlite3_step().  In the new version, the original SQL text is retained
** and the statement is automatically recompiled if an schema change
** occurs.
*/
Two versions of the official API.  Legacy and new use.  In the legacy
version, the original SQL text is not saved in the prepared statement
and so if a schema change occurs, SQLITE_SCHEMA is returned by
sqlite3_step().  In the new version, the original SQL text is retained
and the statement is automatically recompiled if an schema change
occurs.
Two versions of the official API . Legacy and new use . In the legacy version the original SQL text is not saved in the prepared statement and so if a schema change occurs SQLITE_SCHEMA is returned by sqlite3_step () . In the new version the original SQL text is retained and the statement is automatically recompiled if an schema change occurs .
int sqlite3_prepare(
  sqlite3 *db,              
  const char *zSql,         
  int nBytes,               
  sqlite3_stmt **ppStmt,    
  const char **pzTail       
){
  return sqlite3Prepare(db,zSql,nBytes,0,ppStmt,pzTail);
}
int sqlite3_prepare ( sqlite3 * db , const char * zSql , int nBytes , sqlite3_stmt * * ppStmt , const char * * pzTail ) { return sqlite3Prepare ( db , zSql , nBytes , 0 , ppStmt , pzTail ) ; }
Two versions of the official API.
Two versions of the official API .
/* Database handle. */ /* UTF-8 encoded SQL statement. */ /* Length of zSql in bytes. */ /* OUT: A pointer to the prepared statement */ /* OUT: End of parsed string */