summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorRick Ellis <rick.ellis@ellislab.com>2008-10-18 04:25:45 +0200
committerRick Ellis <rick.ellis@ellislab.com>2008-10-18 04:25:45 +0200
commitb5a9acabee5472637f962b776e3c01c1f3d7e205 (patch)
tree9c7e28576be8ff919b027b449f903151dbea6a29 /system
parent23012599aa8f668b515387eccae6bc540e136bd8 (diff)
Set primary key to zero, since there isn't a good way to retrieve it. Bug report: 5172
Diffstat (limited to 'system')
-rw-r--r--system/database/drivers/postgre/postgre_result.php2
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;