[SR-Users] htable ::size has wrong value

Juha Heinanen jh at tutpro.com
Tue May 24 21:29:23 CEST 2011


the query in ht_db_load_table is

select key_name,key_type,value_type,key_value from htable  order by key_type;

that is records are ordered by key_type, which means that 0 entries come
first and 1 entries after that.

in ht_db_load_table function there is test in the loop:

	if(ktype==0 && last_ktype==1)

what is point of last_ktype==1 part if 0 records come first and then 1
records?  or is c code getting the records in reverse order?

-- juha



More information about the sr-users mailing list