Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294758

MySql driver throws a generic DatabaseExceptionWrapper for integrity violation at insertion when column has no default

$
0
0

Problem/Motivation

Coming from #2993663-23: Deprecate Schema::fieldSetDefault and Schema::fieldSetNoDefault, they're not used.

In case of attempted INSERT of a record with an undefined column and no default value indicated in schema, MySql returns a 1364 error code. This leads to a DatabaseExceptionWrapper being thrown instead of the more accurate IntegrityConstraintViolationException like the other drivers do.

Proposed resolution

Make so that MySql driver throws the same excpetion as the other core drivers.

Remaining tasks

User interface changes

API changes

Data model changes


Viewing all articles
Browse latest Browse all 294758

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>