From b56b9d48249bc436de01c139f68ad74205e2265f Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 13 Jan 2016 14:26:16 +0800 Subject: [PATCH] =?UTF-8?q?sqlite=E9=A9=B1=E5=8A=A8=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/driver/Sqlite.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/think/db/driver/Sqlite.php b/library/think/db/driver/Sqlite.php index 0f8a3956..dfb91b53 100644 --- a/library/think/db/driver/Sqlite.php +++ b/library/think/db/driver/Sqlite.php @@ -46,10 +46,10 @@ class Sqlite extends Driver $info[$val['name']] = [ 'name' => $val['name'], 'type' => $val['type'], - 'notnull' => (bool) (1 === $val['notnull']), + 'notnull' => 1 === $val['notnull'], 'default' => $val['dflt_value'], 'primary' => '1' == $val['pk'], - 'autoinc' => false, + 'autoinc' => '1' == $val['pk'], ]; } }