Thank you for ur advice. now some part of mysql script is works. this is really weird , its creating tables now but it does not create stored procedure
here is the 2 SP which i used. normally if u run that script on mysql manually it works but with setup there is giving syntax error.
NOTE : u can add that script to my project which i sent you before.
DROP PROCEDURE IF EXISTS `spc_kullanici_sifre_guncelle`;
DELIMITER |
CREATE PROCEDURE `spc_kullanici_sifre_guncelle`(
in p_rid int,
in p_eski_sifre varchar(50),
in p_yeni_sifre varchar(50),
in p_kullanici_adi varchar(50),
out sonuc int,
out sonuc_mesaj varchar(500))
BEGIN
set sonuc = 0;
if exists(select 1 from kullanicilar where sifre=p_eski_sifre and rid=p_rid) then
update kullanicilar set sifre=p_yeni_sifre where rid=p_rid;
set sonuc = 1;
set sonuc_mesaj ="";
else
set sonuc=0;
set sonuc_mesaj ="Girdiğiniz eski şifre yanlış. Lütfen kontrol ediniz!";
#return sonuc; eger kullanici log kullanilacak olursa kullanilacak
end if;
END |
DELIMITER ;
DROP PROCEDURE IF EXISTS `spc_kullanici_tema_kayit`;
DELIMITER |
CREATE PROCEDURE `spc_kullanici_tema_kayit`(
in p_kullanici_rid int,
in p_icerik varchar(50)
)
BEGIN
IF EXISTS(SELECT 1 FROM kullanici_tema WHERE kullanici_rid = p_kullanici_rid) then
update kullanici_tema set icerik=p_icerik, tarih=now() where kullanici_rid=p_kullanici_rid;
else
insert into kullanici_tema(kullanici_rid, icerik, tarih) values(p_kullanici_rid, p_icerik, now());
end if;
END |
DELIMITER ;
FOLLOW US
Get the latest news in Application Packaging