You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is probably easy to fix while fixing #74 but since this is a bit different, I created separate issue.
I have BEFORE INSERT and BEFORE UPDATE triggers on table which prevent some invalid entries with SIGNAL SQLSTATE '45000'. For example:
CREATE TRIGGER `PageRedirect_bi` BEFORE INSERT ON `PageRedirect`
FOR EACH ROW
# UrlName must also be unique with Page.UrlName
IF (EXISTS(SELECT * FROM Page WHERE UrlName = NEW.UrlName)) THEN
SIGNAL SQLSTATE '45000';
END IF
When trying to save new or updated record with invalid values, Xataface dies with uncaught exception instead of handling this gracefully.
PHP Fatal error: Uncaught exception 'Exception' with message 'Failed to update due to sql error: Unhandled user-defined exception condition' in
/xataface-2.1.3/Dataface/IO.php:1033
Stack trace:
This is probably easy to fix while fixing #74 but since this is a bit different, I created separate issue.
I have
BEFORE INSERT
andBEFORE UPDATE
triggers on table which prevent some invalid entries withSIGNAL SQLSTATE '45000'
. For example:When trying to save new or updated record with invalid values, Xataface dies with uncaught exception instead of handling this gracefully.
The text was updated successfully, but these errors were encountered: