Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [ZendFramework][Zend_Db] Problem
GrayHat
post 11.08.2008, 09:22:01
Post #1





Grupa: Zarejestrowani
Postów: 566
Pomógł: 18
Dołączył: 23.08.2003
Skąd: Łomża

Ostrzeżenie: (0%)
-----


Witam.
Mam problem z tym zapytaniem:
  1. SELECT `software`.*, `categories`.`name` AS `catname`, `subcategories`.`name` AS `subcatname` FROM `software` force INDEX (release_date) INNER JOIN `categories` force INDEX(PRIMARY) ON categories.id = software.category INNER JOIN `subcategories` force INDEX(PRIMARY) ON subcategories.id = software.subcategory ORDER BY `release_date` DESC LIMIT 10


Przez Query Browsera wykonuje się bez problemu, ale przez Zend_Db_Query nie chce... Zwraca mi taki błąd:

Kod
Catchable fatal error: Object of class Zend_Db_Statement_Pdo could not be converted to string in \library\Zend\Db\Statement.php on line 187


Dogrzebując się do tej linijki znajdujemy:

  1. <?php
  2. $sql = preg_replace("/$q($qe|{2}|[^$q])*$q/", '', $sql);
  3. ?>


Po zakomentowaniu tej linijki problem występuje dalej.
Proszę o pomoc...

Pozdrawiam

Problem rozwiązany.
Przez nieuwagę i niewyspanie po weekendzie miałem literówkę w wywołaniu obiektu Zend_Db winksmiley.jpg


--------------------
*Note: No animals were killed durning the construction of this post.
Go to the top of the page
+Quote Post

Posty w temacie
- GrayHat   [ZendFramework][Zend_Db] Problem   11.08.2008, 09:22:01


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 24.07.2025 - 13:20