| 1406 | const RefreshSet & Context::getRefreshSet() const { return shared->refresh_set; } |
| 1407 | |
| 1408 | String Context::resolveDatabase(const String & database_name) const |
| 1409 | { |
| 1410 | String res = database_name.empty() ? getCurrentDatabase() : database_name; |
| 1411 | if (res.empty()) |
| 1412 | throw Exception(ErrorCodes::UNKNOWN_DATABASE, "Default database is not selected"); |
| 1413 | return res; |
| 1414 | } |
| 1415 | |
| 1416 | String Context::getPath() const |
| 1417 | { |
no test coverage detected