Suse 10.0

A place to discuss and receive support for the Web Auction application.

Postby idefixgallier » Mon Jul 09, 2007 2:17 am

Hi Steve!

As I told you via mail, I do some further debugging on the "get webauction running on opensuse" problem.

The Problem seems to be that part of dataface's Parser.sql:

$this->token returns not "select", it returns only "s", so
they query action can't be defined and raises this mysterious pear error.

The sql statement was:
select p.*,current_high_bid from products p left join (select product_id,max(bid_amount) as current_high_bid from bids group by product_id) as b on p.product_id=b.product_id

lg
Martin

---------------------------------------------------------------------
// get query action
$this->getTok();
switch ($this->token) {
case null:
// null == end of string
return $this->raiseError('Nothing to do');
case 'select':
return $this->parseSelect();
case 'update':
return $this->parseUpdate();
case 'insert':
return $this->parseInsert();
case 'delete':
return $this->parseDelete();
case 'create':
return $this->parseCreate();
case 'drop':
return $this->parseDrop();
default:
return $this->raiseError('Unknown action :'.$this->token);
}
---------------------------------------------------------------------
idefixgallier
 
Posts: 7
Joined: Wed Dec 31, 1969 5:00 pm

Postby idefixgallier » Mon Jul 09, 2007 3:51 am

Ok, I have found the solution!

All SuSE User - you have to install the php5-ctype

(in my case it was php5-ctype-5.2.3-29.4.i586.rpm)

Without that package the lexer wan't work!!

lg
idefixgallier
 
Posts: 7
Joined: Wed Dec 31, 1969 5:00 pm


Return to Web Auction Discussion

Who is online

Users browsing this forum: No registered users and 22 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved