| 200 | |
| 201 | |
| 202 | bool OMSFileLoad::prepareQueryMetaInfo_(SQLite::Statement& query, |
| 203 | const String& parent_table) |
| 204 | { |
| 205 | String table_name = parent_table + "_MetaInfo"; |
| 206 | if (!db_->tableExists(table_name)) return false; |
| 207 | |
| 208 | String sql_select = |
| 209 | "SELECT * FROM " + table_name.toQString() + " AS MI " \ |
| 210 | "WHERE MI.parent_id = :id"; |
| 211 | |
| 212 | if (version_number_ < 4) |
| 213 | { |
| 214 | sql_select = |
| 215 | "SELECT * FROM " + table_name.toQString() + " AS MI " \ |
| 216 | "JOIN DataValue AS DV ON MI.data_value_id = DV.id " \ |
| 217 | "WHERE MI.parent_id = :id"; |
| 218 | } |
| 219 | query = SQLite::Statement(*db_, sql_select); |
| 220 | return true; |
| 221 | } |
| 222 | |
| 223 | |
| 224 | bool OMSFileLoad::prepareQueryAppliedProcessingStep_(SQLite::Statement& query, |
nothing calls this directly
no test coverage detected