diff --git a/Unit_testing/Schema.php b/Unit_testing/Schema.php index 6fa6b27..0cf4e41 100644 --- a/Unit_testing/Schema.php +++ b/Unit_testing/Schema.php @@ -960,8 +960,15 @@ { if ( strpos( $e->getMessage(), "value larger than specified precision" ) !== FALSE ) { + // Need to check if there is actually a constraint there or not. + echo " ...does so implicitly via column length\n"; throw new PDOException( "check constraint" ); } + elseif ( strpos( $e->getMessage(), "check constraint" ) !== FALSE ) + { + echo " ...does so explicitly via constraint\n"; + throw $e; + } else { throw $e;