Test Build: CUBRID 2008 R4.1 (8.4.1.1018) (64bit release build for linux_gnu)
OS: Linux 64
Description: Getting value of index is reverse_index using cubrid_field_flags method
Repro steps:
1. execute: php flags_index_test.phpt
statements in flags_index_test.phpt
{noformat}
cubrid_execute($conn,drop table if EXISTS index_tb;);
cubrid_execute($conn,CREATE TABLE index_tb(id INT PRIMARY KEY,phone VARCHAR(10),address string););
cubrid_execute($conn,create index index_tb_index on index_tb(address));
$result=cubrid_execute($conn,select * from index_tb;);
$col_num = cubrid_num_cols($result);
for($i = 0; $i $col_num; $i++) {
printf(%-30s %s\n, cubrid_field_name($result, $i), cubrid_field_flags($result, $i));
}
cubrid_close_request($result);
{noformat}
Actual result:
{noformat}
id not_null primary_key unique_key
phone
address reverse_index
{noformat}
Expect result:
{noformat}
id not_null primary_key unique_key
phone
address
{noformat}