mirror of https://github.com/VinGarcia/ksql.git
Fix test that was not working on sqlserver (for good reasons)
parent
4352f659c1
commit
31dfbeca3f
|
@ -1,6 +1,6 @@
|
|||
// Code generated by sqlc. DO NOT EDIT.
|
||||
// versions:
|
||||
// sqlc v1.26.0
|
||||
// sqlc v1.14.0
|
||||
|
||||
package sqlcgen
|
||||
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
// Code generated by sqlc. DO NOT EDIT.
|
||||
// versions:
|
||||
// sqlc v1.26.0
|
||||
// sqlc v1.14.0
|
||||
|
||||
package sqlcgen
|
||||
|
||||
import ()
|
||||
|
||||
type User struct {
|
||||
ID int32
|
||||
Name string
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Code generated by sqlc. DO NOT EDIT.
|
||||
// versions:
|
||||
// sqlc v1.26.0
|
||||
// sqlc v1.14.0
|
||||
// source: queries.sql
|
||||
|
||||
package sqlcgen
|
||||
|
|
|
@ -789,11 +789,17 @@ func InsertTest(
|
|||
t.Run("should insert one user correctly with a string ID", func(t *testing.T) {
|
||||
c := newTestDB(db, dialect)
|
||||
|
||||
u := user{
|
||||
type strIDUser struct {
|
||||
Name string `ksql:"name"`
|
||||
Age int `ksql:"age"`
|
||||
Address address `ksql:"address,json"`
|
||||
}
|
||||
u := strIDUser{
|
||||
Name: "FernandaIsTheID",
|
||||
Address: address{
|
||||
Country: "Brazil",
|
||||
},
|
||||
Age: 42,
|
||||
}
|
||||
|
||||
ctx = InjectLogger(ctx, Logger)
|
||||
|
|
Loading…
Reference in New Issue