|
|
@@ -222,7 +222,7 @@
|
|
|
FROM player
|
|
|
WHERE uid = :uid;
|
|
|
");
|
|
|
- $statement->bindValue(':uid', $UID, SQLITE3_INTEGER);
|
|
|
+ $statement->bindValue(':uid', $UID, SQLITE3_TEXT);
|
|
|
$r = $statement->execute()->fetchArray(SQLITE3_ASSOC);
|
|
|
if ($r){
|
|
|
$this->uid = $r["uid"];
|
|
|
@@ -266,7 +266,7 @@
|
|
|
WHERE uid = :uid
|
|
|
ORDER BY position;
|
|
|
");
|
|
|
- $statement->bindValue(':uid', $UID, SQLITE3_INTEGER);
|
|
|
+ $statement->bindValue(':uid', $UID, SQLITE3_TEXT);
|
|
|
$q = $statement->execute();
|
|
|
while ($r = $q->fetchArray(SQLITE3_ASSOC)){
|
|
|
array_push($this->defense, new Unit($r["unit"], false));
|
|
|
@@ -279,7 +279,7 @@
|
|
|
WHERE uid = :uid
|
|
|
ORDER BY position;
|
|
|
");
|
|
|
- $statement->bindValue(':uid', $UID, SQLITE3_INTEGER);
|
|
|
+ $statement->bindValue(':uid', $UID, SQLITE3_TEXT);
|
|
|
$q = $statement->execute();
|
|
|
while ($r = $q->fetchArray(SQLITE3_ASSOC)){
|
|
|
if ($r["position"] <= 3){
|
|
|
@@ -301,7 +301,7 @@
|
|
|
building.building = k_building.id
|
|
|
GROUP BY building.building;
|
|
|
");
|
|
|
- $statement->bindValue(':uid', $UID, SQLITE3_INTEGER);
|
|
|
+ $statement->bindValue(':uid', $UID, SQLITE3_TEXT);
|
|
|
$q = $statement->execute();
|
|
|
while ($r = $q->fetchArray(SQLITE3_ASSOC)){
|
|
|
array_push($this->building, new Building($r["id"]));
|
|
|
@@ -311,7 +311,7 @@
|
|
|
FROM decoration
|
|
|
WHERE uid = :uid;
|
|
|
");
|
|
|
- $statement->bindValue(':uid', $UID, SQLITE3_INTEGER);
|
|
|
+ $statement->bindValue(':uid', $UID, SQLITE3_TEXT);
|
|
|
$q = $statement->execute();
|
|
|
while ($r = $q->fetchArray(SQLITE3_ASSOC)){
|
|
|
array_push($this->decoration, new Decoration($r["id"]));
|
|
|
@@ -327,8 +327,8 @@
|
|
|
amount > 0
|
|
|
ORDER BY inventory.type;
|
|
|
");
|
|
|
- $statement->bindValue(':uid', $UID, SQLITE3_INTEGER);
|
|
|
- $statement->bindValue(':type', INVENTORY_TYPE_ID::SCROLL, SQLITE3_INTEGER);
|
|
|
+ $statement->bindValue(':uid', $UID, SQLITE3_TEXT);
|
|
|
+ $statement->bindValue(':type', INVENTORY_TYPE_ID::SCROLL, SQLITE3_TEXT);
|
|
|
$q = $statement->execute();
|
|
|
while ($r = $q->fetchArray(SQLITE3_ASSOC)){
|
|
|
array_push($this->inventory_scroll, new Inventory($r["id"], $r["type"]));
|
|
|
@@ -346,8 +346,8 @@
|
|
|
amount > 0
|
|
|
ORDER BY inventory.id;
|
|
|
");
|
|
|
- $statement->bindValue(':uid', $UID, SQLITE3_INTEGER);
|
|
|
- $statement->bindValue(':type', INVENTORY_TYPE_ID::ENCHANTMENT, SQLITE3_INTEGER);
|
|
|
+ $statement->bindValue(':uid', $UID, SQLITE3_TEXT);
|
|
|
+ $statement->bindValue(':type', INVENTORY_TYPE_ID::ENCHANTMENT, SQLITE3_TEXT);
|
|
|
$q = $statement->execute();
|
|
|
while ($r = $q->fetchArray(SQLITE3_ASSOC)){
|
|
|
array_push($this->inventory_craft_rune, new Inventory($r["id"], $r["type"]));
|
|
|
@@ -364,8 +364,8 @@
|
|
|
amount > 0
|
|
|
ORDER BY inventory.id;
|
|
|
");
|
|
|
- $statement->bindValue(':uid', $UID, SQLITE3_INTEGER);
|
|
|
- $statement->bindValue(':type', INVENTORY_TYPE_ID::CRAFT_STUFF, SQLITE3_INTEGER);
|
|
|
+ $statement->bindValue(':uid', $UID, SQLITE3_TEXT);
|
|
|
+ $statement->bindValue(':type', INVENTORY_TYPE_ID::CRAFT_STUFF, SQLITE3_TEXT);
|
|
|
$q = $statement->execute();
|
|
|
while ($r = $q->fetchArray(SQLITE3_ASSOC)){
|
|
|
array_push($this->inventory_craft, new Inventory($r["id"], $r["type"]));
|
|
|
@@ -395,8 +395,8 @@
|
|
|
upper(name) NOT LIKE '%HIGH%'
|
|
|
;
|
|
|
");
|
|
|
- $statement->bindValue(':uid', $UID, SQLITE3_INTEGER);
|
|
|
- $statement->bindValue(':type', INVENTORY_TYPE_ID::ESSENCES, SQLITE3_INTEGER);
|
|
|
+ $statement->bindValue(':uid', $UID, SQLITE3_TEXT);
|
|
|
+ $statement->bindValue(':type', INVENTORY_TYPE_ID::ESSENCES, SQLITE3_TEXT);
|
|
|
$q = $statement->execute();
|
|
|
while ($r = $q->fetchArray(SQLITE3_ASSOC)){
|
|
|
array_push($this->inventory_essence, new Inventory($r["id"], $r["type"]));
|
|
|
@@ -430,7 +430,7 @@
|
|
|
ELSE area
|
|
|
END ASC
|
|
|
");
|
|
|
- $statement->bindValue(':uid', $UID, SQLITE3_INTEGER);
|
|
|
+ $statement->bindValue(':uid', $UID, SQLITE3_TEXT);
|
|
|
$q = $statement->execute();
|
|
|
while ($r = $q->fetchArray(SQLITE3_ASSOC)){
|
|
|
array_push($this->record, new Record($r["uid"], $r["area_type"], $r["area"]));
|