[DiscordArchive] and if there are 0 tables? why would that stop populating the database again?
[DiscordArchive] and if there are 0 tables? why would that stop populating the database again?
Archived author: ZaDarkSide • Posted: 2023-03-16T09:10:02.969000+00:00
Original source
and if there are 0 tables? why would that stop populating the database again?
Archived author: ZaDarkSide • Posted: 2023-03-16T09:10:11.387000+00:00
Original source
that was my point earlier...about the bug
Archived author: ZaDarkSide • Posted: 2023-03-16T09:10:31.140000+00:00
Original source
Archived author: Tea • Posted: 2023-03-16T09:12:01.535000+00:00
Original source
well thats not a bug if we ship the views in full tdb dump
Archived author: ZaDarkSide • Posted: 2023-03-16T09:14:04.719000+00:00
Original source
well if you have 0 tables and just 1 view remaining after dropping all tables in a database, I would expect TC to consider that database empty and to try to run the sql file to recreate the tables and views
Archived author: ZaDarkSide • Posted: 2023-03-16T09:14:54.858000+00:00
Original source
just because you have a view remaining there in that database it should not be considered as already populated
Archived author: ZaDarkSide • Posted: 2023-03-16T09:16:49.227000+00:00
Original source
```c++
QueryResult const result = Retrieve(pool, "SHOW TABLES"); // query returns result, it would say 1 result even if all tables are already droped and just 1 view remains in the database
if (result && (result->GetRowCount() > 0)) // row count greater then zero
return true; // don't populate it's already populated
```
so this is not a bug?