Forums WoW Modding Support Archives TrinityCore Discord Archives [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?

[DiscordArchive] and if there are 0 tables? why would that stop populating the database again?

rektbyfaith
Administrator
0
03-16-2023, 09:10 AM
#1
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?
rektbyfaith
03-16-2023, 09:10 AM #1

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?

rektbyfaith
Administrator
0
03-16-2023, 09:10 AM
#2
Archived author: ZaDarkSide • Posted: 2023-03-16T09:10:11.387000+00:00
Original source

that was my point earlier...about the bug
rektbyfaith
03-16-2023, 09:10 AM #2

Archived author: ZaDarkSide • Posted: 2023-03-16T09:10:11.387000+00:00
Original source

that was my point earlier...about the bug

rektbyfaith
Administrator
0
03-16-2023, 09:10 AM
#3
Archived author: ZaDarkSide • Posted: 2023-03-16T09:10:31.140000+00:00
Original source

rektbyfaith
03-16-2023, 09:10 AM #3

Archived author: ZaDarkSide • Posted: 2023-03-16T09:10:31.140000+00:00
Original source

rektbyfaith
Administrator
0
03-16-2023, 09:12 AM
#4
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
rektbyfaith
03-16-2023, 09:12 AM #4

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

rektbyfaith
Administrator
0
03-16-2023, 09:14 AM
#5
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
rektbyfaith
03-16-2023, 09:14 AM #5

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

rektbyfaith
Administrator
0
03-16-2023, 09:14 AM
#6
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
rektbyfaith
03-16-2023, 09:14 AM #6

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

rektbyfaith
Administrator
0
03-16-2023, 09:16 AM
#7
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?
rektbyfaith
03-16-2023, 09:16 AM #7

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?

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)