mirror of
https://github.com/chaisql/chai.git
synced 2025-10-05 23:57:01 +08:00
Treat all NULL values differently in UNIQUE indexes
SQL standard can be interpreted differently: either NULL values are all unique (SQLite, PostgreSQL, ... and now Genji) or they are considered equal (SQL Server, ...).
This commit is contained in:
@@ -134,7 +134,7 @@ func testDocumentGetByField(t *testing.T, codecBuilder func() encoding.Codec) {
|
||||
assert.NoError(t, err)
|
||||
require.Equal(t, types.NewTextValue("john"), v)
|
||||
|
||||
v, err = d.GetByField("d")
|
||||
_, err = d.GetByField("d")
|
||||
assert.ErrorIs(t, err, document.ErrFieldNotFound)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user