------------------------------------------------------------------------------
| 494 | |
| 495 | //------------------------------------------------------------------------------ |
| 496 | int vtkSQLDatabaseSchema::GetColumnSizeFromHandle(int tblHandle, int colHandle) |
| 497 | { |
| 498 | if (tblHandle < 0 || tblHandle >= this->GetNumberOfTables()) |
| 499 | { |
| 500 | vtkErrorMacro("Cannot get size of a column in non-existent table " << tblHandle); |
| 501 | return -1; |
| 502 | } |
| 503 | |
| 504 | if (colHandle < 0 || |
| 505 | colHandle >= static_cast<int>(this->Internals->Tables[tblHandle].Columns.size())) |
| 506 | { |
| 507 | vtkErrorMacro( |
| 508 | "Cannot get size of non-existent column " << colHandle << " in table " << tblHandle); |
| 509 | return -1; |
| 510 | } |
| 511 | |
| 512 | return this->Internals->Tables[tblHandle].Columns[colHandle].Size; |
| 513 | } |
| 514 | |
| 515 | //------------------------------------------------------------------------------ |
| 516 | const char* vtkSQLDatabaseSchema::GetColumnAttributesFromHandle(int tblHandle, int colHandle) |
no test coverage detected