Problemas con una funcion
Hola buenas,
Tengo el siguiente problema
En un servidor remoto que me conecto por medio de putty entro al mysql y desde ahi ingreso esta funcion
CREATE FUNCTION agregaAsistenciaDeLosParticipantesDelCurso (vEvento int, vSesion int, vCurp char(18))
-> RETURNS INT
-> DETERMINISTIC
-> BEGIN
-> DECLARE reg INT;
-> SELECT COUNT(curp) INTO reg FROM asistenciaxparticipante WHERE idEvento=vEvento and curp=vCurp and idSesion=vSesion;
-> if reg=0 then
-> insert into asistenciaxparticipante values(vEvento, vSesion, vCurp);
-> end if;
-> RETURN 0;
-> END //
ERROR 1419 (HY000): You do not have the SUPER privilege and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)
y me manada el error 1419. Yo ya tengo los permisos para crear procedimientos y la variable log_bin esta en 1, Según el administrador dice que debe determinar el tipo de función pero tiene que es DETERMINISTIC
anteriormente si podía insertar las funciones existía la base pero la borre y la volví a crear y pude insertar las funciones. repetí el proceso de borrar la base y crearla pero ya no pude insertar la funciones
La versión de mysql es 5.0.95-log
Espero y me ayuden :) que tengan buen día.
Subject
Views
Written By
Posted
Problemas con una funcion
1847
October 15, 2012 09:40AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.