| 267 | } |
| 268 | |
| 269 | bool InternalConnection::isSameDatabase(const PathName& dbName, ClumpletReader& dpb, const CryptHash& ch) const |
| 270 | { |
| 271 | if (isCurrent()) |
| 272 | { |
| 273 | const Attachment* att = m_attachment->getHandle(); |
| 274 | const MetaString& attUser = att->getUserName(); |
| 275 | const MetaString& attRole = att->getSqlRole(); |
| 276 | |
| 277 | MetaString str; |
| 278 | |
| 279 | if (dpb.find(isc_dpb_user_name)) |
| 280 | { |
| 281 | dpb.getString(str); |
| 282 | if (str != attUser) |
| 283 | return false; |
| 284 | } |
| 285 | |
| 286 | if (dpb.find(isc_dpb_sql_role_name)) |
| 287 | { |
| 288 | dpb.getString(str); |
| 289 | if (str != attRole) |
| 290 | return false; |
| 291 | } |
| 292 | } |
| 293 | |
| 294 | return Connection::isSameDatabase(dbName, dpb, ch); |
| 295 | } |
| 296 | |
| 297 | Transaction* InternalConnection::doCreateTransaction() |
| 298 | { |
nothing calls this directly
no test coverage detected