Hej!
Mam problem ze zbindowaniem tablicy do parametru, który w bazie danych jest typu "nested table". Typ jest taki:
  1. CREATE OR REPLACE type test_ot AS object (
  2. nr number,
  3. about varchar2(50),
  4. keywords varchar2(60)
  5. );
  6. CREATE OR REPLACE type test_ntt IS TABLE of test_ot;

W PHP mam:
  1. $test_nt = oci_new_collection($conn, 'TEST_NTT');
  2. for ($i=0; $i<count($t_ntt); $i++) {
  3. $test_ntt->append("TEST_NTT(1,'About','Keywords')");
  4. // tak też próbowałem:
  5. // $test_ntt->append(array("NR"=>1,"ABOUT"=>"","KEYWORDS"=>""));
  6. // ale jest błąd, że metoda append oczekuje string-a
  7. }
ale dostaję błąd:
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?