mirror of
https://github.com/VinGarcia/ksql.git
synced 2025-07-09 03:58:43 +00:00
Improve test by adding comment
This commit is contained in:
parent
1a1f198803
commit
743d021f7a
@ -3078,6 +3078,14 @@ func ModifiersTest(
|
||||
|
||||
c := newTestDB(db, driver)
|
||||
|
||||
// The default value of the column "nullable_field"
|
||||
// is the string: "not_null".
|
||||
//
|
||||
// So the tagged struct below should insert passing NULL
|
||||
// and the untagged should insert not passing any value
|
||||
// for this column, thus, only the second one should create
|
||||
// a recording using the default value.
|
||||
|
||||
var taggedUser struct {
|
||||
ID uint `ksql:"id"`
|
||||
NullableField *string `ksql:"nullable_field,nullable"`
|
||||
|
Loading…
x
Reference in New Issue
Block a user