Uwe Grauer wrote:
> Uwe Grauer wrote:
>> Kelie wrote:
>>> Paul McNett <p <at> ulmcnett.com> writes:
>>>> Have you studied the code in dabodemo/tutorial/browseDataSet.py?
>>>>
>>>> That demo is all set up to accept your database connection parameters 
>>>> and sql statement on the command line...
>>>>
>>> Paul, i think i got it to work. i specified the -H argument in my first 
>>> try, but
>>> it should be -d. New question: how is the column order determined in the 
>>> output
>>> grid? seems it is not by alphabetical order, nor is by the order shown in 
>>> the
>>> database. i would like to have the same order as in the db.
>>>
>> There is no standard column order if you select by "select * from".
>> If you want to have a column order, use:
>> "select col1, col2, colN from tablename".
>>
>> Uwe
> 
> But Dabo doesn't like to do it in the sql select order!
> It seems to have it's own ordering.
> 
> Just found out by some tests!

I think it's because each record is a Python dict, and the keys of 
Python dicts are in arbitrary order. We should make an issue about this.

-- 
pkm ~ http://paulmcnett.com


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]

Reply via email to