Hi, 

Imagine , the user types the below sql string into the browser of our web 
application:

show tables from employees

Now using Jooq I connect to the user's database and I run the following 
code:

Result<Record> result = context.fetch(sql);
System.out.println(result.size());

for(Record a : result) {
    System.out.println(a.toString());
    System.out.println("*********Fileds***********");
    Field<?>[] fields = a.fields();
    for(Field field : fields)
        System.out.println(field.toString());
    System.out.println("\n\n");
}

Here I want to get all the data like table name and its corresponding 
column names , types etc so that I can show that back to the user. However 
the line:

a.fields()

is returning :

Tables_in_employees

I was expecting to return the fields of the corresponding table (ie Record 
details). May be I'm wrong here. 

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to