Re: [fw-general] Zend_Db_Select::where() malfunction

2007-11-21 Thread Thomas Weidner
Shekar, actually the documentation does not mention this usage. And there are also no testcases. All testcases have approved before I did my commit. Actually, giving an array as input would result in each single placeholder to be replaced. where(price ? and price = ?, array(2, 10));

Re: [fw-general] Zend_Db_Select::where() malfunction

2007-11-21 Thread Thomas Weidner
Shekar, to get my snippet working with previous versions you would just have to add a version check... if (Zend_Version::compareVersions('1.0.2') 0) { // change where } or you wait for the issue to be solved... 1.0.4 I think as in 4 days the new release comes out. Greetings Thomas I18N

Re: [fw-general] NT Authentication Pdo MSSQL

2007-11-21 Thread Bryce Lohr
Hi Terry, My apologies for the late reply... I ran into this issue with PDO as well. I was able to work around it by using the PDO ODBC adapter, where only the DSN is required. IIRC, I got NT Authentication to work like that, however, I haven't actually done this since shortly after PHP 5

Re: [fw-general] Zend_Db_Select::where() malfunction

2007-11-21 Thread Shekar C Reddy
I guess the new method should be named inWhere(). On 11/21/07, Shekar C Reddy [EMAIL PROTECTED] wrote: Thomas, I encourage you to test the where() method with v1.0.2 and see the results - it generates SQL imploding all the array values into a single placeholder as expected. The

Re: [fw-general] Zend_Db_Select::where() malfunction

2007-11-21 Thread Shekar C Reddy
Please ignore the new suggested name. It is a part of the where clause [where()/orWhere()] and so, in() would be ideal: $select-where($select-in( ... )); $select-orWhere( $select-in( ... )); Thanks On 11/21/07, Shekar C Reddy [EMAIL PROTECTED] wrote: I guess the new method should be

Re: [fw-general] NT Authentication Pdo MSSQL

2007-11-21 Thread Thomas Weidner
This is wrong... Actually I made a PDO ODBC Adapter. You can find it within the incubator. Greetings Thomas I18N Team Leader - Original Message - From: Bryce Lohr [EMAIL PROTECTED] To: Terry Shipclark [EMAIL PROTECTED]; fw-general@lists.zend.com Sent: Wednesday, November 21, 2007

Re: [fw-general] Zend_Db_Select::where() malfunction

2007-11-21 Thread Art Hundiak
Thomas, Don't take this the wrong way but these casual massive changes to the way existing code works is the reason why I stopped using Zend_Db back in the .8 days. By taking away the array imploding functionality you have just broken a considerable amount of existing code. Code written in

Re: [fw-general] Zend_Db_Select::where() malfunction

2007-11-21 Thread Thomas Weidner
Art, as I said in past we reviewed what was written within the documentation and within the testbed. The usecases did not brake anyone of the behaviour mentioned there. Then we looked over the opened issues and discussed about the additional usecases we want to support. This mentioned

[fw-general] Forwarding with POST.

2007-11-21 Thread kabel
Before I dive into it, I'll admit to being a bit weak in the whole request/response flow, so bear with me if this is slightly obtuse. I've got an account creation page that works through one module. After account creation, I want to forward that user to my Auth controller, login action, which

Re: [fw-general] Forwarding with POST.

2007-11-21 Thread Michael Depetrillo
I think the only way to do this would be to create an HTML page with a form and some javascript that would perform a submit() when the page loads. This is dangerous though because you would have to embed the username/password or some sort of key/hash as a hidden form field. On Nov 21, 2007 8:59

Re: [fw-general] Forwarding with POST.

2007-11-21 Thread Sebastian Krebs
Hi If you simply forward (/$this-_forward()/), then all the POST-data remains. A redirect (/$this-_redirect()/ or per redirector-helper) is a new request made by the browser and regulary there is no way to perform such a redirect with POST-data, but i dont see any cause to do this. You are

Re: [fw-general] Zend_Db_Select::where() malfunction

2007-11-21 Thread Art Hundiak
Zend 0.8.0 had the use of where IN (?) array documented. As well as previous versions. Zend 0.9.0 did not have it documented Zend 0.9.1 was the first release with Zend_Db_Select unit test cases and, as you say, did not have an array test or any tests with multiple ? place holders Zend 1.0.2

Re: [fw-general] NT Authentication Pdo MSSQL

2007-11-21 Thread tshipclark
Does this require any changes to the php installation. Although I do believe that I may have enough pull to get pdo odbc support added to the server, this may take some time. I am not at a computer right now, however if I recall correctly odbc wasn't listed as one of the pdo drivers

Re: [fw-general] NT Authentication Pdo MSSQL

2007-11-21 Thread Thomas Weidner
I made this PDO ODBC Adapter because I had to connect to MSDE on a Win2000 Machine. I ran it successfully with systemdsn and unconfigured Msde connections with success. Of course I can not guarantee that all things are working, but that's the reason why it's still in the incubator. It

Re: [fw-general] NT Authentication Pdo MSSQL

2007-11-21 Thread Bryce Lohr
Thank you for the clarification on this, Thomas. I was unaware of your adapter in the incubator. Regards, Bryce Lohr Thomas Weidner wrote: This is wrong... Actually I made a PDO ODBC Adapter. You can find it within the incubator. Greetings Thomas I18N Team Leader - Original Message

Re: [fw-general] Zend_Db_Select::where() malfunction

2007-11-21 Thread Bill Karwin
Since ZF 1.0 was released the Prime Directive is to preserve backward compatibility if possible. This includes when resolving reported bugs or feature requests; the behavior of ZF 1.0 must be preserved for Zend Framework's mission to be accomplished. I understand that it is tempting to change

[fw-general] undefined method DB_mssql::lastInsertId() ??

2007-11-21 Thread clone45
Hello! I'm constantly running in to these types of issues. I must be doing something fundamentally wrong. I've instantiated a database connection like so: // -- $dsn = $config-dbadaptor . :// // Build a DSN string

Re: [fw-general] undefined method DB_mssql::lastInsertId() ??

2007-11-21 Thread Simon Mundy
DB::connect looks like a PEAR factory method - are you sure you're using Zend Framework? If not, you'd need to post to a PEAR mailing list. Hello! I'm constantly running in to these types of issues. I must be doing something fundamentally wrong. I've instantiated a database connection

Re: [fw-general] Zend_Db_Select::where() malfunction

2007-11-21 Thread Thomas Weidner
Unit tests where not lacking... I added docu and unit tests to all my changes. I ran all unit tests before I did my commit. And how should I receive backwards compatibility if there are no tests and no documentation so people did not know that this even exists ? It's impossible because there

Re: [fw-general] undefined method DB_mssql::lastInsertId() ??

2007-11-21 Thread clone45
Woops! Ha ha ha. I'm an idiot. Sorry about that. I got confused about which database library I was using. Thanks! Simon Mundy wrote: DB::connect looks like a PEAR factory method - are you sure you're using Zend Framework? If not, you'd need to post to a PEAR mailing list. Hello!

Re: [fw-general] Zend_Db_Select::where() malfunction

2007-11-21 Thread Simon Mundy
Hi Thomas In fairness I also didn't know of that usecase - however there is a similar usage in Zend_Db_Table::find(). So it would seem to hold that where one would exist the other would behave similarly - and since Art and Shekar have indicated that it did exist in that form I have no

Re: [fw-general] Zend_Db_Select::where() malfunction

2007-11-21 Thread Simon Mundy
Hi Thomas, Bill, all I've just had another thought... Currently the API allows for immediate substitution - the ? takes the value of the second parameter and it is quoted before being added to the select object. Perhaps it should stay that way? For the new functionality suggested by