php - Firebird throwing exceptions at simple queries -


i'm making kind of external plugin friend which, first time in life, involves dealing interbase/firebird engine.

i've got table:

create table t_klient ( id_klienta integer not null, nazwa pl_varchar250 not null, wojewodztwo pl_varchar50 not null, miasto pl_varchar50 not null, poczta poczta not null, adres pl_varchar50, os_kontakt pl_varchar100, telefon pl_varchar30, fax pl_varchar30, nip pl_varchar30, email pl_varchar100, id_scenariusza liczba, raportowanie liczba, uwagi pl_varchar250, krs pl_varchar30, fakturowanie liczba, konto pl_varchar50, ac kod_oznaczenia_null, status liczba, kod_klienta pl_varchar30 not null, nr_klienta pl_varchar30 not null, id_kategorii liczba default -1, id_oddzialu integer default 0, ryczalt_kwota kwota, godz_ryczalt liczba default 0, kwota_godz_pozaryczalt kwota, online_login pl_varchar10, online_password pl_varchar30, przedstawiciel_kod kod_oznaczenia_null, f_prowizja_kapital "dprocenty" default 0, f_prowizja_odsetki "dprocenty" default 0, organrejestrowy pl_varchar250, regon pl_varchar100, strona_www pl_varchar100, telefon_gsm pl_varchar30, branza pl_varchar100, rodzaj_podmiotu pl_varchar100, nr_domu pl_varchar10); 

this function

 function fdb_addclient($client_name, $client_address, $client_postal, $client_city, $client_country, $client_vat) {     $get_total_client_count = ($this->fdb_gettotalclientcount()+1);     $set_query = ibase_query($this->fb_db, "insert t_klient values (".$get_total_client_count.", '".$client_name."', '---', '".$client_city."', '".$client_postal."', '".$client_address."', 'brak', 'brak', 'brak', '".$client_vat."', 'brak', null, null, 'brak', null, null, 'brak', null, null, '".$client_vat."', '".$client_vat."', -1, 0, 0, 0, 0, 'brak', 'brak', null, 0, 0, 0, 0, null, null, null, null, null)") or die(ibase_errcode().'-'.ibase_errmsg());     if ($set_query) { return true; } else { return false; } } 

and error can't rid of

warning: ibase_query(): exception @1 @1 @1 @1 in c:\webserv\httpd\core.php on line 37 -836-exception @1 @1 @1 @1 

unfortunately, internet poor in decent support firebird , it's overwhelmingly frustrating.

i'd appreciate hint. thank in advance!

@edit

specifying columns not help.

function fdb_addclient($client_name, $client_address, $client_postal, $client_city, $client_country, $client_vat) {     $get_total_client_count = ($this->fdb_gettotalclientcount()+1);     $set_query = ibase_query($this->fb_db, "insert t_klient (id_klienta, nazwa, wojewodztwo, miasto, poczta, adres, os_kontakt, telefon, fax, nip, email, id_scenariusza, raportowanie, uwagi, krs, fakturowanie, konto, ac, status, kod_klienta, nr_klienta, id_kategorii, id_oddzialu, ryczalt_kwota, godz_ryczalt, kwota_godz_pozaryczalt, online_login, online_password, przedstawiciel_kod, f_prowizja_kapital, f_prowizja_odsetki, organrejestrowy, regon, strona_www, telefon_gsm, branza, rodzaj_podmiotu, nr_domu) values (".$get_total_client_count.", '".$client_name."', '---', '".$client_city."', '".$client_postal."', '".$client_address."', 'brak', 'brak', 'brak', '".$client_vat."', 'brak', null, null, 'brak', null, null, 'brak', null, null, '".$client_vat."', '".$client_vat."', -1, 0, 0, 0, 0, 'brak', 'brak', null, 0, 0, 0, 0, null, null, null, null, null)") or die(ibase_errcode().'-'.ibase_errmsg());     if ($set_query) { return true; } else { return false; } } 

this issue solved updating fbclient.dll more comprehensible errors , reading triggers embedded database.

thanks users involved.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -