Explorar o código

Fix table creation when there is no PK

Nathaniel van Diepen %!s(int64=6) %!d(string=hai) anos
pai
achega
0481b14f4a
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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){