table->s->primary_key is always 0. I.e. for the following statement i
would have expected it to be 1:
create table test1 (value integer, id integer primary key);
My current workaround (not yet tested extensively):
I search table->key_info for the primary key (table->key_info[i]->name
must be "PRIMARY"), then I can retrieve any additional information
like table type, name etc through table->key_info[i]->key_part->field.
(I need that information to set up my index tables.)