diff options
author | Rick Ellis <rick.ellis@ellislab.com> | 2008-10-18 04:25:45 +0200 |
---|---|---|
committer | Rick Ellis <rick.ellis@ellislab.com> | 2008-10-18 04:25:45 +0200 |
commit | b5a9acabee5472637f962b776e3c01c1f3d7e205 (patch) | |
tree | 9c7e28576be8ff919b027b449f903151dbea6a29 /system/database/drivers | |
parent | 23012599aa8f668b515387eccae6bc540e136bd8 (diff) |
Set primary key to zero, since there isn't a good way to retrieve it. Bug report: 5172
Diffstat (limited to 'system/database/drivers')
-rw-r--r-- | system/database/drivers/postgre/postgre_result.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/drivers/postgre/postgre_result.php b/system/database/drivers/postgre/postgre_result.php index 2e1e00330..78b9a6040 100644 --- a/system/database/drivers/postgre/postgre_result.php +++ b/system/database/drivers/postgre/postgre_result.php @@ -90,7 +90,7 @@ class CI_DB_postgre_result extends CI_DB_result { $F->name = pg_field_name($this->result_id, $i);
$F->type = pg_field_type($this->result_id, $i);
$F->max_length = pg_field_size($this->result_id, $i);
- $F->primary_key = $i == 0;
+ $F->primary_key = 0;
$F->default = '';
$retval[] = $F;
|