diff options
author | admin <devnull@localhost> | 2006-09-17 20:13:34 +0200 |
---|---|---|
committer | admin <devnull@localhost> | 2006-09-17 20:13:34 +0200 |
commit | b68745e494773bce023c9a7eaca672e32beb1a47 (patch) | |
tree | f286b55fd111f91571f3b384294d7a9b5496f005 /system/drivers/DB_mysqli.php | |
parent | f6d823ee041caab303a7aba6ecd8c358c6970113 (diff) |
Diffstat (limited to 'system/drivers/DB_mysqli.php')
-rw-r--r-- | system/drivers/DB_mysqli.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/drivers/DB_mysqli.php b/system/drivers/DB_mysqli.php index fadcdd3c4..8bea60444 100644 --- a/system/drivers/DB_mysqli.php +++ b/system/drivers/DB_mysqli.php @@ -451,7 +451,7 @@ class CI_DB_mysqli_result extends CI_DB_result { $F->type = $field->type; $F->default = $field->def; $F->max_length = $field->max_length; - $F->primary_key = 0; + $F->primary_key = ($field->flags & MYSQLI_PRI_KEY_FLAG) ? 1 : 0; $retval[] = $F; } |