Hi, Konstantin!
On Mar 26, Konstantin Osipov wrote:
> * Sergei Golubchik <serg@stripped> [09/03/26 22:52]:
>
> > What about simply downgrading ER_BINLOG_UNSAFE_STATEMENT to a "note" ?
> > Notes aren't promoted to errors in the strict mode, in a sense notes are
> > "warnings which are never errors, even in a strict mode", so making
> > ER_BINLOG_UNSAFE_STATEMENT a note is correct here.
>
> An okay solution except there won't be anything in the log if
> sql_notes is not set ;) (a change in behaviour,
> theoretically).
>
> In any case long term we will need a strategy to handle warnings
> that should never be promoted to errors, even in strict mode.
At the moment this solution is notes.
That is, we have three levels of severity:
1. always errors
2. errors only in the strict mode
- these are called "warnings"
3. never errors
- these are called "notes"
At least, this is how it was designed to work.
Regards / Mit vielen Grüßen,
Sergei
--
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Sergei Golubchik <serg@stripped>
/ /|_/ / // /\ \/ /_/ / /__ Principal Software Engineer/Server Architect
/_/ /_/\_, /___/\___\_\___/ Sun Microsystems GmbH, HRB München 161028
<___/ Sonnenallee 1, 85551 Kirchheim-Heimstetten
Geschäftsführer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Häring