Errore nella modifica dei dati di un socio esistente #2

Closed
opened 2020-12-11 21:37:18 +00:00 by lucam · 1 comment
Owner
QSqlError("1449", "QMYSQL3: Unable to execute statement", "The user specified as a definer ('golem'@'%') does not exist")
[EE] model transaction submit error
``` QSqlError("1449", "QMYSQL3: Unable to execute statement", "The user specified as a definer ('golem'@'%') does not exist") [EE] model transaction submit error ```
lucam added the
Bug
label 2020-12-11 21:37:18 +00:00
Owner

Il problema è dovuto all'errato avvio di questo trigger, che serve per la generazione automatica del PIN/OTP per la compilazione del questionario tramite limourtouch.
Al momento non è comunque utilizzabile e non sono nemmeno sicuro che funzioni con le versioni aggiornate del nuovo database, quindi per il momento l'ho disattivato.

socio_BEFORE_INSERT | INSERT | socio | BEGIN
	set @currentTimeStamp = current_timestamp();
    if new.abilitaQuestionario = 1 then
		set new.pin = creaPin(new.pin);
	else
		set new.pin = null;
	end if;
    set new.dataCreazione = @currentTimeStamp;
    set new.dataModifica = @currentTimeStamp;
END
socio_BEFORE_UPDATE | UPDATE | socio | BEGIN
    if new.abilitaQuestionario = 1 then
		set new.pin = creaPin(new.pin);
	else
		set new.pin = null;
	end if;
    set new.dataModifica = current_timestamp();
END
Il problema è dovuto all'errato avvio di questo trigger, che serve per la generazione automatica del PIN/OTP per la compilazione del questionario tramite limourtouch. Al momento non è comunque utilizzabile e non sono nemmeno sicuro che funzioni con le versioni aggiornate del nuovo database, quindi per il momento l'ho disattivato. ``` socio_BEFORE_INSERT | INSERT | socio | BEGIN set @currentTimeStamp = current_timestamp(); if new.abilitaQuestionario = 1 then set new.pin = creaPin(new.pin); else set new.pin = null; end if; set new.dataCreazione = @currentTimeStamp; set new.dataModifica = @currentTimeStamp; END ``` ``` socio_BEFORE_UPDATE | UPDATE | socio | BEGIN if new.abilitaQuestionario = 1 then set new.pin = creaPin(new.pin); else set new.pin = null; end if; set new.dataModifica = current_timestamp(); END ```
lucam closed this issue 2021-01-21 15:36:29 +00:00
Sign in to join this conversation.
No Label
Bug
Feature request
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: golem/gestionale#2
No description provided.