Skip to content

Commit 4b0a13e

Browse files
committed
row bug fixed.
1 parent 0fb6e46 commit 4b0a13e

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

src/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
class Connection extends Database {
66

7-
public $Version = "v2.3.5";
7+
public $Version = "v2.3.6";
88
private $ProjectStartAt;
99
private $MemoryUsage;
1010
public $HashID;

src/Table/Columns/Get.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ protected static function where_data($data,$TableName) {
4747
if ($value == null or $value == [] or $value == '' or $value == 'null') {
4848
continue;
4949
}
50+
if($ColumnData['type']?->Primary == true) {
51+
$new[$key] = $value;
52+
break;
53+
}
5054
$value = self::Encrypt ($TableName,$key,$value);
5155
$value = \Azad\Database\Enums::EnumToValue($TableName,$key,$value);
5256
$value = self::SetDataType ($TableName,$key,$value);

src/Table/Columns/Update/Row.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public function Push () {
4343
}
4444
$NewData = array_merge($this->Data,parent::$UpdateData);
4545
$Result = $this->PreparingNewData($this->Table,$NewData,encrypt:false);
46+
var_dump("NEW DATA ",$Result);
4647
$SendToQuery = $this->PreparingNewData($this->Table,parent::$UpdateData,enumv:true);
4748

4849
if(parent::$SystemConfig[parent::$MyHash]['RAM'] == true) {

test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@
4444
->Update
4545
->Key("wallet")->Increase(50000)
4646
->Push()
47-
->Result);
47+
->Result);

0 commit comments

Comments
 (0)