find the illuminance map index by name
| 4242 | |
| 4243 | // find the illuminance map index by name |
| 4244 | boost::optional<int> SqlFile_Impl::illuminanceMapIndex(const std::string& name) const { |
| 4245 | // TODO: haven't figured out how to bind properly to the LIKE statement, tried |
| 4246 | // LIKE ? |
| 4247 | // LIKE %?% => sqlite3_prepare_v2 fails |
| 4248 | // LIKE %%?%% |
| 4249 | // LIKE '%?%' (not recognized as a placeholder) |
| 4250 | const std::string& s = "SELECT MapNumber FROM DaylightMaps WHERE MapName LIKE '%" + name + "%'"; |
| 4251 | return execAndReturnFirstInt(s); |
| 4252 | } |
| 4253 | |
| 4254 | void SqlFile_Impl::mf_makeConsistent(std::vector<SqlFileTimeSeriesQuery>& queries) { |
| 4255 | // make each query consistent, or delete it if there is no possibility of a matching TimeSeries |
nothing calls this directly
no test coverage detected