Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] Hey guys. Im using PExecute in my scripts for update SQL datas, but... Next code not working for cur

[DiscordArchive] Hey guys. Im using PExecute in my scripts for update SQL datas, but... Next code not working for cur

[DiscordArchive] Hey guys. Im using PExecute in my scripts for update SQL datas, but... Next code not working for cur

rektbyfaith
Administrator
0
02-12-2023, 04:43 AM
#1
Archived author: Sicker • Posted: 2023-02-12T04:43:52.495000+00:00
Original source

Hey guys. Im using PExecute in my scripts for update SQL datas, but... Next code not working for current master version:

```
CharacterDatabase.PExecute("... (`guid`, `owner`) VALUES (%u, %u, %u, %u)", OldItem->GetGUID().GetCounter(), player->GetGUID().GetCounter());
```

Core says incorrect integer valuer %u for column guid. But column guid is bigint 20 primary...

What incorrect?
rektbyfaith
02-12-2023, 04:43 AM #1

Archived author: Sicker • Posted: 2023-02-12T04:43:52.495000+00:00
Original source

Hey guys. Im using PExecute in my scripts for update SQL datas, but... Next code not working for current master version:

```
CharacterDatabase.PExecute("... (`guid`, `owner`) VALUES (%u, %u, %u, %u)", OldItem->GetGUID().GetCounter(), player->GetGUID().GetCounter());
```

Core says incorrect integer valuer %u for column guid. But column guid is bigint 20 primary...

What incorrect?

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