Closed UnknownOre closed 2 years ago
Can you show the full code used to reproduce this issue? What is in $closure`, and what is in your query?
https://github.com/poggit/libasynql/blob/49aebed5c95c493b0ec2ab06f08be672584c523c/libasynql/src/poggit/libasynql/base/DataConnectorImpl.php#L174 are you sure you didn't accidentally use the second parameter instead of the first one?
that's the full code
$this->dataConnector->executeSelect(SQLQueries::SELECT_FACTION_ID_DATA, [
"id" => $id], function(array $data) use ($count, $closure):void{
$data[0][Faction::COUNT] = $count;
$closure($data);
});
are you sure you didn't accidentally use the second parameter instead of the first one?
also yeah I'm pretty sure I used the first parameter, because I'm still using the same code and it's working fine
I'm closing this because I can't reproduce it
Describe the bug it didn't return the full rows but returned the full ColumnInfo
Sample code
Expected behavior return the rows
trace
Environment OS: Windows 10 PocketMine version: 4.3.1 (git hash: f7dce4af8802ce28a8286e1c8002af19cf986c62)