I've made several stored procedures to avoid storing definitions of views inside my code, but I'm not able to use them with dataset wizard, as they don't appear in the list of tables, views and functions. There is no problem with the permission, it's for sure. I'm using registered version 4.95.170
Any help is appreciated!
DDL for procedure:
Code: Select all
CREATE OR REPLACE FUNCTION projekt.projekt(kotesszam character varying DEFAULT '%'::character varying)
RETURNS SETOF projekt.projekt AS
$BODY$
SELECT * from projekt.projekt where kotesszam LIKE $1;
$BODY$
LANGUAGE 'sql' VOLATILE
COST 100
ROWS 1000;
Code: Select all
CREATE TABLE projekt.projekt
(
-- Inherited from table projekt.projekt: kotesszam character varying(10) NOT NULL,
-- Inherited from table projekt.projekt: megnevezes character varying NOT NULL,
-- Inherited from table projekt.projekt: telephely_id integer,
-- Inherited from table projekt.projekt: statusz_id integer NOT NULL DEFAULT 1,
-- Inherited from table projekt.projekt: uzletag_id character varying(4) NOT NULL,
-- Inherited from table projekt.projekt: rendszer_id character varying(10) NOT NULL,
-- Inherited from table projekt.projekt: szuloprojekt character varying(10),
-- Inherited from table projekt.projekt: vezeto_pm character varying,
-- Inherited from table projekt.projekt: kontaktszemely character varying,
-- Inherited from table projekt.projekt: kontakttel character varying,
-- Inherited from table projekt.projekt: kontaktmail character varying,
-- Inherited from table projekt.projekt: szallitasicim character varying,
-- Inherited from table projekt.projekt: devizanem character(3) NOT NULL DEFAULT 'HUF'::bpchar,
-- Inherited from table projekt.projekt: dok_adt_muszaki_atveteli boolean NOT NULL DEFAULT false,
-- Inherited from table projekt.projekt: dok_adt_szallitolevel boolean NOT NULL DEFAULT false,
-- Inherited from table projekt.projekt: dok_adt_oktatasi_jegyzokonyv boolean NOT NULL DEFAULT false,
-- Inherited from table projekt.projekt: dok_adt_vegmeresi_tesztlap boolean NOT NULL DEFAULT false,
-- Inherited from table projekt.projekt: dok_adt_megvalosulasi_dokumentacio boolean NOT NULL DEFAULT false,
-- Inherited from table projekt.projekt: dok_adt_alvallalkozoi_szerzodes boolean NOT NULL DEFAULT false,
-- Inherited from table projekt.projekt: dok_tfis_kiviteli_terv boolean NOT NULL DEFAULT false,
-- Inherited from table projekt.projekt: dok_tfis_letesitesi_engedely boolean NOT NULL DEFAULT false,
-- Inherited from table projekt.projekt: dok_tfis_nyomasproba boolean NOT NULL DEFAULT false,
-- Inherited from table projekt.projekt: dok_tfis_szivattyu_beuzemeles boolean NOT NULL DEFAULT false,
-- Inherited from table projekt.projekt: dok_tfis_rendszer_teszt boolean NOT NULL DEFAULT false,
-- Inherited from table projekt.projekt: dok_tfis_oktatasi_jegyzokonyv boolean NOT NULL DEFAULT false,
-- Inherited from table projekt.projekt: dok_tfis_beuzemelesi_jegyzokonyv boolean NOT NULL DEFAULT false,
-- Inherited from table projekt.projekt: dok_tfis_atadasi_jegyzokonyv_hatosagi boolean NOT NULL DEFAULT false,
-- Inherited from table projekt.projekt: dok_tfis_atadasi_jegyzokonyv_megrendelo boolean NOT NULL DEFAULT false,
-- Inherited from table projekt.projekt: dok_tfis_hasznalatbaveteli_engedely boolean NOT NULL DEFAULT false,
-- Inherited from table projekt.projekt: dok_tfis_karbantartasi_adatlap boolean NOT NULL DEFAULT false,
-- Inherited from table projekt.projekt: dok_tfis_projektzaro_lap boolean NOT NULL DEFAULT false,
-- Inherited from table projekt.projekt: egysoros_szamla boolean NOT NULL DEFAULT false,
-- Inherited from table projekt.projekt: bankgarancia boolean NOT NULL DEFAULT false,
-- Inherited from table projekt.projekt: garancialis_visszatartas numeric(4,4) DEFAULT 0,
-- Inherited from table projekt.projekt: joteljesitesi_visszatartas numeric(4,4) DEFAULT 0,
-- Inherited from table projekt.projekt: tovabbszamlazott_szolg_dij numeric(4,4) DEFAULT 0,
-- Inherited from table projekt.projekt: sales_koltseg_eszkoz numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: sales_koltseg_alvallalkozoimunka numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: sales_koltseg_anyag numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: sales_koltseg_pm numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: sales_koltseg_tervezes numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: sales_koltseg_berlet numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: sales_koltseg_egyeb numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: sales_bevetel_eszkoz numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: sales_bevetel_alvallalkozoimunka numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: sales_bevetel_anyag numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: sales_bevetel_pm numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: sales_bevetel_tervezes numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: sales_bevetel_berlet numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: sales_bevetel_egyeb numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: megjegyzes text,
-- Inherited from table projekt.projekt: utolso_apollo_frissites timestamp without time zone,
-- Inherited from table projekt.projekt: felvivo character varying NOT NULL DEFAULT "current_user"(),
-- Inherited from table projekt.projekt: felvitel_idopont timestamp without time zone NOT NULL DEFAULT now(),
-- Inherited from table projekt.projekt: elso_felvitel_idopont timestamp without time zone NOT NULL DEFAULT now(),
-- Inherited from table projekt.projekt: elso_felvivo character varying NOT NULL DEFAULT "current_user"(),
-- Inherited from table projekt.projekt: modosito character varying,
-- Inherited from table projekt.projekt: modositas_idopont timestamp without time zone,
-- Inherited from table projekt.projekt: ugyfel_nev character varying,
-- Inherited from table projekt.projekt: ugyfel_cim character varying,
-- Inherited from table projekt.projekt: telephely_nev character varying,
-- Inherited from table projekt.projekt: telephely_cim character varying,
-- Inherited from table projekt.projekt: pm_eredeti_koltseg_eszkoz numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: pm_eredeti_koltseg_alvallalkozoimunka numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: pm_eredeti_koltseg_anyag numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: pm_eredeti_koltseg_pm numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: pm_eredeti_koltseg_tervezes numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: pm_eredeti_koltseg_berlet numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: pm_eredeti_koltseg_egyeb numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: pm_aktualis_koltseg_eszkoz numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: pm_aktualis_koltseg_alvallalkozoimunka numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: pm_aktualis_koltseg_anyag numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: pm_aktualis_koltseg_pm numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: pm_aktualis_koltseg_tervezes numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: pm_aktualis_koltseg_berlet numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: pm_aktualis_koltseg_egyeb numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: apollo_koltseg_eszkoz numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: apollo_koltseg_alvallalkozoimunka numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: apollo_koltseg_anyag numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: apollo_koltseg_pm numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: apollo_koltseg_tervezes numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: apollo_koltseg_berlet numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: apollo_koltseg_egyeb numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: apollo_bevetel_eszkoz numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: apollo_bevetel_alvallalkozoimunka numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: apollo_bevetel_anyag numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: apollo_bevetel_pm numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: apollo_bevetel_tervezes numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: apollo_bevetel_berlet numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: apollo_bevetel_egyeb numeric(12,2) DEFAULT 0,
-- Inherited from table projekt.projekt: pm_eredeti_koltseg_lezarva boolean NOT NULL DEFAULT false,
-- Inherited from table projekt.projekt: afas boolean NOT NULL DEFAULT true,
-- Inherited from table projekt.projekt: kozbeszerzeses boolean DEFAULT false,
CONSTRAINT projekt_pkey PRIMARY KEY (kotesszam),
CONSTRAINT projekt_fk_felhasznalo FOREIGN KEY (vezeto_pm)
REFERENCES felhasznalo.felhasznalo (felhasznalo_id) MATCH SIMPLE
ON UPDATE RESTRICT ON DELETE RESTRICT,
CONSTRAINT projekt_fk_rendszer FOREIGN KEY (rendszer_id)
REFERENCES projekt.rendszer (rendszer_id) MATCH SIMPLE
ON UPDATE RESTRICT ON DELETE RESTRICT,
CONSTRAINT projekt_fk_statusz FOREIGN KEY (statusz_id)
REFERENCES projekt.statusz (statusz_id) MATCH SIMPLE
ON UPDATE RESTRICT ON DELETE RESTRICT,
CONSTRAINT projekt_fk_telephely FOREIGN KEY (telephely_id)
REFERENCES ugyfel.telephely (telephely_id) MATCH SIMPLE
ON UPDATE RESTRICT ON DELETE RESTRICT,
CONSTRAINT projekt_fk_uzletag FOREIGN KEY (uzletag_id)
REFERENCES projekt.uzletag (uzletag_id) MATCH SIMPLE
ON UPDATE RESTRICT ON DELETE RESTRICT
)
INHERITS (projekt.projekt_sablon)
WITH (
OIDS=TRUE
);