[MDEV-18680] 'not null' ger fel i mariadb, inte i mysql Created: 2019-02-21  Updated: 2019-03-12  Resolved: 2019-03-11

Status: Closed
Project: MariaDB Server
Component/s: Server
Affects Version/s: 10.1.37
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Jörgen Hägg Assignee: Unassigned
Resolution: Not a Bug Votes: 0
Labels: None
Environment:

linux (Debian)



 Description   

Jag har en tabell med en kolumn som är märkt 'not null'.
Då mitt program felaktigt försöker sätta 'null' på denna kolumn
ger mariadb fel (vilket säkert är korrekt), men mysql (5.5) ignorerar detta
och sätter 'default' i stället.

Jag tolkar det som om mysql gör fel och mariadb korrekt?

(Vilket gör att vi måste hitta våra programfel, men det är bra.

(Kolumnen är i en myisam-tabell)

Jag vill egentligen bara veta vad som är korrekt beteende.



 Comments   
Comment by Elena Stepanova [ 2019-03-11 ]

For the time being, JIRA is a bug-tracking system which handles bug reports and feature requests. If you need advice with your configuration, please seek it from mailing lists, IRC and other community resources. You might also consider acquiring a support contract. If you already have one, please file a ticket there.

Comment by Jörgen Hägg [ 2019-03-12 ]

Since this is a different behavior from what mysql does, it is important
to know who is doing the right thing, mariadb or mysql.
As I can see, it is not a configuration issue, it is a bug.
It is enough to know that mariadb is correct and mysql wrong, just so I
know which.

Generated at Thu Feb 08 08:45:55 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.