Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] how do you find the primary key using just the DBRecord pointer?

[DiscordArchive] how do you find the primary key using just the DBRecord pointer?

[DiscordArchive] how do you find the primary key using just the DBRecord pointer?

Pages (4): 1 2 3 4 Next
rektbyfaith
Administrator
0
08-06-2023, 08:12 PM
#1
Archived author: Azarchius • Posted: 2023-08-06T20:12:53.060000+00:00
Original source

how do you find the primary key using just the DBRecord pointer?
rektbyfaith
08-06-2023, 08:12 PM #1

Archived author: Azarchius • Posted: 2023-08-06T20:12:53.060000+00:00
Original source

how do you find the primary key using just the DBRecord pointer?

rektbyfaith
Administrator
0
08-06-2023, 08:13 PM
#2
Archived author: Azarchius • Posted: 2023-08-06T20:13:53.063000+00:00
Original source

sure, I fetched the record, but no inclination or hint at what the key is, unless the DBRecord pointer + index were instantiated together such as that ptr offset can be used to calc id and vice versa
rektbyfaith
08-06-2023, 08:13 PM #2

Archived author: Azarchius • Posted: 2023-08-06T20:13:53.063000+00:00
Original source

sure, I fetched the record, but no inclination or hint at what the key is, unless the DBRecord pointer + index were instantiated together such as that ptr offset can be used to calc id and vice versa

rektbyfaith
Administrator
0
08-06-2023, 08:18 PM
#3
Archived author: MaxWilson • Posted: 2023-08-06T20:18:29.367000+00:00
Original source


```uint32 DB2Record::GetId() const
{
return _db2.RecordGetId(_recordData, _recordIndex);
}```
```uint32 DB2FileLoaderRegularImpl::RecordGetId(uint8 const* record, uint32 recordIndex) const
{
if (_loadInfo->Meta->HasIndexFieldInData())
return RecordGetVarInt<uint32>(record, _loadInfo->Meta->GetIndexField(), 0);

return _idTable[recordIndex];
}```
rektbyfaith
08-06-2023, 08:18 PM #3

Archived author: MaxWilson • Posted: 2023-08-06T20:18:29.367000+00:00
Original source


```uint32 DB2Record::GetId() const
{
return _db2.RecordGetId(_recordData, _recordIndex);
}```
```uint32 DB2FileLoaderRegularImpl::RecordGetId(uint8 const* record, uint32 recordIndex) const
{
if (_loadInfo->Meta->HasIndexFieldInData())
return RecordGetVarInt<uint32>(record, _loadInfo->Meta->GetIndexField(), 0);

return _idTable[recordIndex];
}```

rektbyfaith
Administrator
0
08-06-2023, 08:20 PM
#4
Archived author: Azarchius • Posted: 2023-08-06T20:20:16.788000+00:00
Original source

<:blobsweat:585563802792099861>
rektbyfaith
08-06-2023, 08:20 PM #4

Archived author: Azarchius • Posted: 2023-08-06T20:20:16.788000+00:00
Original source

<:blobsweat:585563802792099861>

rektbyfaith
Administrator
0
08-06-2023, 08:21 PM
#5
Archived author: Azarchius • Posted: 2023-08-06T20:21:28.878000+00:00
Original source

but you still need the index?
rektbyfaith
08-06-2023, 08:21 PM #5

Archived author: Azarchius • Posted: 2023-08-06T20:21:28.878000+00:00
Original source

but you still need the index?

rektbyfaith
Administrator
0
08-06-2023, 08:21 PM
#6
Archived author: Titi • Posted: 2023-08-06T20:21:46.627000+00:00
Original source

quit retail and become a wrath chad
rektbyfaith
08-06-2023, 08:21 PM #6

Archived author: Titi • Posted: 2023-08-06T20:21:46.627000+00:00
Original source

quit retail and become a wrath chad

rektbyfaith
Administrator
0
08-06-2023, 08:21 PM
#7
Archived author: Azarchius • Posted: 2023-08-06T20:21:56.621000+00:00
Original source

I've quit retail
rektbyfaith
08-06-2023, 08:21 PM #7

Archived author: Azarchius • Posted: 2023-08-06T20:21:56.621000+00:00
Original source

I've quit retail

rektbyfaith
Administrator
0
08-06-2023, 08:22 PM
#8
Archived author: Azarchius • Posted: 2023-08-06T20:22:03.217000+00:00
Original source

third time's the charm, _this time_ I'm sticking to 927 and not budging
rektbyfaith
08-06-2023, 08:22 PM #8

Archived author: Azarchius • Posted: 2023-08-06T20:22:03.217000+00:00
Original source

third time's the charm, _this time_ I'm sticking to 927 and not budging

rektbyfaith
Administrator
0
08-06-2023, 08:22 PM
#9
Archived author: Titi • Posted: 2023-08-06T20:22:17.824000+00:00
Original source

retail = any version after wrath
rektbyfaith
08-06-2023, 08:22 PM #9

Archived author: Titi • Posted: 2023-08-06T20:22:17.824000+00:00
Original source

retail = any version after wrath

rektbyfaith
Administrator
0
08-06-2023, 08:23 PM
#10
Archived author: MaxWilson • Posted: 2023-08-06T20:23:25.396000+00:00
Original source

recordIndex?
is just a record number xD
rektbyfaith
08-06-2023, 08:23 PM #10

Archived author: MaxWilson • Posted: 2023-08-06T20:23:25.396000+00:00
Original source

recordIndex?
is just a record number xD

Pages (4): 1 2 3 4 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)