GadFly and gfplus.py working with Python 2.0?

Eugene Leitl Eugene.Leitl at lrz.uni-muenchen.de
Wed Mar 7 06:07:35 EST 2001


On Wed, 7 Mar 2001, Oleg Broytmann wrote:

>    Why not just try yourself? (Works for me, YMMV)

GadFly seems to be working, but gfplus.py doesn't seem
to accept simple valid SQL. Also, I was reading

	http://groups.yahoo.com/group/gadfly-rdbms/messages

and just got spooked, I guess. It seems the problem is not serious:

	http://groups.yahoo.com/group/gadfly-rdbms/message/413

Otoh, gfplus.py is behaving strangely (?) see below. Any idea 
what might be going wrong?

[eleitl at pc27 download]$ python gfplus.py
 
gfplus 1.1 -- Interactive gadfly shell
 
Wednesday March 07, 2001 11:56 AM
 
Using:
DB Name: foo
DB Location: /tmp/frobnik
Unable to locate database "foo" at location "/tmp/frobnik".
Create? (Yy/Nn) Y
GF> desc user_tables;
                       
COLUMN_NAME
===========
 
GF> create table test (nr number,name varchar2(5));
 
SyntaxError: unexpected token sequence.near ::
' table test (nr'*' number,name va'
*******************************
current state = 79
expects:
'EXCEPT', 'UNION', 'GROUP', 'VARCHAR', 'DESC', 'ORDER', 'WHERE', 'AS',
'*', 'IN', 'INTERSECT', 'FLOAT', '+', ')', '/', ',', '-', 'AND', 'FROM',
'*', ';', 'INTEGER', 'NOT', '>', 'OR', 'HAVING', '=', 'BETWEEN', 'ASC',
'<',
('nomatch1',)
current token = ((-8, 'user_defined_name'), 'NUMBER')
 
GF> select * from user_tables;
 
NameError: 'USER_TABLES' no such relation in DB
 
GF> desc user_tables;
 
COLUMN_NAME
===========
 
GF>  





More information about the Python-list mailing list