[fw-general] String to Zend_Db_Select Object

2010-08-12 Thread Andrei Iarus
Hello to all,   Any ideas on how to cast/transform a string to an object of type Zend_Db_Select? Ideally, without rewriting it by hand.   Thank you very much

Re: [fw-general] String to Zend_Db_Select Object

2010-08-12 Thread Ralph Schindler
This is not possible. For that to happen, you'd need an SQL parser/tokenizer, which there is not one in ZF. Moreover, the SQL you have is probably somewhat specific to a particular vendor implementation of SQL which, again, would make it really hard to build a parser/tokenizer that knows

Re: [fw-general] String to Zend_Db_Select Object

2010-08-12 Thread Andrei Iarus
Subject: Re: [fw-general] String to Zend_Db_Select Object To: Andrei Iarus poni1...@yahoo.com Cc: Zend Framework fw-general@lists.zend.com Date: Thursday, August 12, 2010, 6:47 PM This is not possible.  For that to happen, you'd need an SQL parser/tokenizer, which there is not one in ZF.  Moreover

Re: [fw-general] String to Zend_Db_Select Object

2010-08-12 Thread Bill Karwin
: Re: [fw-general] String to Zend_Db_Select Object To: Andrei Iarus poni1...@yahoo.com Cc: Zend Framework fw-general@lists.zend.com Date: Thursday, August 12, 2010, 6:47 PM This is not possible. For that to happen, you'd need an SQL parser/ tokenizer, which there is not one in ZF. Moreover