Searched refs:newSql (Results 1 – 3 of 3) sorted by relevance
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/ |
H A D | rd_statement.cpp | 104 int RdStatement::Prepare(GRD_DB *db, const std::string &newSql) in Prepare() argument 106 if (newSql.find(GlobalExpr::PRAGMA_VERSION) == 0) { in Prepare() 108 if (newSql.length() == PRAGMA_VERSION_SQL_LEN) { in Prepare() 110 sql_ = newSql; in Prepare() 116 if ((!TryEatSymbol(newSql, '=', curIdx)) || (!TryEatNumber(newSql, version, curIdx)) || in Prepare() 117 (!EndWithNull(newSql, curIdx) && !TryEatSymbol(newSql, ';', curIdx))) { in Prepare() 122 sql_ = newSql; in Prepare() 125 if (sql_.compare(newSql) == 0) { in Prepare() 129 int ret = RdUtils::RdSqlPrepare(db, newSql.c_str(), newSql.length(), &tmpStmt, nullptr); in Prepare() 141 sql_ = newSql; in Prepare() [all …]
|
H A D | sqlite_statement.cpp | 65 int SqliteStatement::Prepare(sqlite3 *dbHandle, const std::string &newSql) in Prepare() argument 67 if (sql_.compare(newSql) == 0) { in Prepare() 72 SqlStatistic sqlStatistic(newSql, SqlStatistic::Step::STEP_PREPARE, seqId_); in Prepare() 73 int errCode = sqlite3_prepare_v2(dbHandle, newSql.c_str(), newSql.length(), &stmt, nullptr); in Prepare() 86 PrintInfoForDbError(ret, newSql); in Prepare() 90 sql_ = newSql; in Prepare()
|
/ohos5.0/foundation/communication/netmanager_base/services/netstatsmanager/src/ |
H A D | net_stats_sqlite_statement.cpp | 30 int32_t NetStatsSqliteStatement::Prepare(sqlite3 *dbHandle, const std::string &newSql) in Prepare() argument 32 if (sqlCmd_.compare(newSql) == 0) { in Prepare() 33 NETMGR_LOG_D("%{public}s is already prepared", newSql.c_str()); in Prepare() 37 int32_t errCode = sqlite3_prepare_v2(dbHandle, newSql.c_str(), newSql.length(), &stmt, nullptr); in Prepare() 45 sqlCmd_ = newSql; in Prepare()
|