Mam problem ze zbindowaniem tablicy do parametru, który w bazie danych jest typu "nested table". Typ jest taki:
CREATE OR REPLACE type test_ot AS object ( nr number, about varchar2(50), keywords varchar2(60) ); CREATE OR REPLACE type test_ntt IS TABLE of test_ot;
W PHP mam:
ale dostaję błąd:
$test_nt = oci_new_collection($conn, 'TEST_NTT'); for ($i=0; $i<count($t_ntt); $i++) { $test_ntt->append("TEST_NTT(1,'About','Keywords')"); // tak też próbowałem: // $test_ntt->append(array("NR"=>1,"ABOUT"=>"","KEYWORDS"=>"")); // ale jest błąd, że metoda append oczekuje string-a }
Notice: OCI-Collection::append(): Unknown or unsupported type of element: 108 in /var/www/namiotnik.pl/p_files_t/funcs.php on line 554
Jak powinno być poprawnie?