- s =new wxString("Table/view does not exist in the database");
- if (*(pDb->dbInf.accessibleTables) == 'Y')
- {
- (*s)+=", or you have insufficient permissions.\n";
- }
- else
- {
- (*s)+=".\n";
- }
- }
- else
- {
- // Verify the user has rights to access the table.
- // Shortcut boolean evaluation to optimize out call to TablePrivs
- // Unfortunely this optimization doesn't seem to be reliable!
- if (/* *(pDb->dbInf.accessibleTables) == 'N' && */
- !pDb->TablePrivileges(tableName,"SELECT",NULL,tablePath))
- s = new wxString("Current logged in user has insufficient privileges to access this table.\n");
- }
-
- if (s)
- {
- wxString p;