This commit is contained in:
Yasuhiro Matsumoto 2017-03-21 00:57:55 +09:00
parent 1d0b0f0e72
commit bd7fdb6033
1 changed files with 3 additions and 3 deletions

View File

@ -110,7 +110,7 @@ func TestExtendedErrorCodes_ForeignKey(t *testing.T) {
if err == nil {
t.Error("No error!")
} else {
sqliteErr := err.(Error)
sqliteErr := err.(*Error)
if sqliteErr.Code != ErrConstraint {
t.Errorf("Wrong basic error code: %d != %d",
sqliteErr.Code, ErrConstraint)
@ -166,7 +166,7 @@ func TestExtendedErrorCodes_NotNull(t *testing.T) {
if err == nil {
t.Error("No error!")
} else {
sqliteErr := err.(Error)
sqliteErr := err.(*Error)
if sqliteErr.Code != ErrConstraint {
t.Errorf("Wrong basic error code: %d != %d",
sqliteErr.Code, ErrConstraint)
@ -222,7 +222,7 @@ func TestExtendedErrorCodes_Unique(t *testing.T) {
if err == nil {
t.Error("No error!")
} else {
sqliteErr := err.(Error)
sqliteErr := err.(*Error)
if sqliteErr.Code != ErrConstraint {
t.Errorf("Wrong basic error code: %d != %d",
sqliteErr.Code, ErrConstraint)