Browse Source

Fix table creation when there is no PK

Nathaniel van Diepen 6 năm trước cách đây
mục cha
commit
0481b14f4a
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      PDO/table.class.php

+ 2 - 0
PDO/table.class.php

@@ -143,6 +143,8 @@
 				$pk = $this->primaryKey();
 				if(count($pk)){
 					$pk = ", primary key (".implode(',', $pk).")";
+				}else{
+					$pk = '';
 				}
 				$index = '';
 				foreach($this->index as $name => $idx){