Home
last modified time | relevance | path

Searched refs:sqlType (Results 1 - 7 of 7) sorted by relevance

/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/
H A Dsqlite_utils.cpp92 bool SqliteUtils::IsSupportSqlForExecute(int sqlType) in IsSupportSqlForExecute() argument
94 return (sqlType == STATEMENT_DDL || sqlType == STATEMENT_INSERT || sqlType == STATEMENT_UPDATE || in IsSupportSqlForExecute()
95 sqlType == STATEMENT_PRAGMA); in IsSupportSqlForExecute()
98 bool SqliteUtils::IsSqlReadOnly(int sqlType) in IsSqlReadOnly() argument
100 return (sqlType == STATEMENT_SELECT); in IsSqlReadOnly()
103 bool SqliteUtils::IsSpecial(int sqlType) in IsSpecial() argument
105 if (sqlType == STATEMENT_BEGIN || sqlType in IsSpecial()
[all...]
H A Dtrans_db.cpp197 int sqlType = SqliteUtils::GetSqlStatementType(sql); in Execute() local
198 if (!SqliteUtils::IsSupportSqlForExecute(sqlType) && !SqliteUtils::IsSpecial(sqlType)) { in Execute()
214 if (sqlType == SqliteUtils::STATEMENT_INSERT) { in Execute()
219 if (sqlType == SqliteUtils::STATEMENT_UPDATE) { in Execute()
224 if (sqlType == SqliteUtils::STATEMENT_PRAGMA) { in Execute()
230 if (sqlType == SqliteUtils::STATEMENT_DDL) { in Execute()
H A Drdb_store_impl.cpp1169 int sqlType = SqliteUtils::GetSqlStatementType(sql); in ExecuteSql() local
1170 if (sqlType == SqliteUtils::STATEMENT_DDL) { in ExecuteSql()
1183 if (errCode == E_OK && (sqlType == SqliteUtils::STATEMENT_UPDATE || sqlType == SqliteUtils::STATEMENT_INSERT)) { in ExecuteSql()
1197 int sqlType = SqliteUtils::GetSqlStatementType(sql); in Execute() local
1198 if (!SqliteUtils::IsSupportSqlForExecute(sqlType)) { in Execute()
1199 LOG_ERROR("Not support the sqlType: %{public}d, sql: %{public}s", sqlType, sql.c_str()); in Execute()
1230 return HandleDifferentSqlTypes(statement, sql, object, sqlType); in Execute()
1234 const std::string &sql, const ValueObject &object, int sqlType) in HandleDifferentSqlTypes()
1233 HandleDifferentSqlTypes(std::shared_ptr<Statement> statement, const std::string &sql, const ValueObject &object, int sqlType) HandleDifferentSqlTypes() argument
2030 std::string sqlType = sql.substr(index, 3); CheckAttach() local
[all...]
H A Dsqlite_statement.cpp367 int sqlType = SqliteUtils::GetSqlStatementType(sql_); in Execute() local
368 if (sqlType != SqliteUtils::STATEMENT_COMMIT && sqlType != SqliteUtils::STATEMENT_ROLLBACK) { in Execute()
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/include/
H A Dsqlite_utils.h48 static bool IsSupportSqlForExecute(int sqlType);
49 static bool IsSqlReadOnly(int sqlType);
50 static bool IsSpecial(int sqlType);
H A Drdb_store_impl.h168 const std::string &sql, const ValueObject &object, int sqlType);
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/mock/include/
H A Drdb_store_impl.h93 const std::string &sql, const ValueObject &object, int sqlType);

Completed in 7 milliseconds