![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 66 Pomógł: 1 Dołączył: 24.09.2009 Ostrzeżenie: (0%) ![]() ![]() |
Witam,
W PHP manual pisze: "While PDO has its advantages, such as a clean, simple, portable API, its main disadvantage is that it doesn't allow you to use all of the advanced features that are available in the latest versions of MySQL server. For example, PDO does not allow you to use MySQL's support for Multiple Statements" Tak więc gdy robię:
wyświetla się błąd ponieważ zgodnie z MySQL manualem "Multiple-result processing also is required if you execute CALL statements for stored procedures (...)". zwraca 2 rezultaty, "główny" oraz status błędu Da się to jakoś obejść ? Wymyśliłem taki kod:
tylko nie rozumiem dlaczego muszę tworzyć nową nazwę instancji klasy. W taki sposób:
robiąc tak z drugiego multi statement wykona się tylko SELECT 1 as one; Pytanie drugie odnośnie tego. Wie ktoś jak pobrać ze stored procedures: "The final result from the procedure is a status result that includes no result set. The status indicates whether the procedure succeeded or an error occurred." ten status? Pozdrawiam Ten post edytował armon 24.10.2011, 14:24:34 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 22.08.2025 - 17:52 |