DB connector, just one result in resultset

I try to read data from db with db connector. It works in graphical mode, but in scripting mode I get just one only data set:

def list =
while(resultset.next()) {
list.add(resultset.getString(“blablub”))
}

Some ideas?

It was just a usual copy-paste problem

Forget it, was my fault