Revert "Fix compare against null.Bytes"
This reverts commit bbd9277e0e
.
This commit is contained in:
parent
2ba5371cb6
commit
69a59043c8
7 changed files with 7 additions and 7 deletions
|
@ -6,7 +6,7 @@
|
||||||
{{- $slice := printf "%sSlice" .LocalTable.NameGo -}}
|
{{- $slice := printf "%sSlice" .LocalTable.NameGo -}}
|
||||||
{{- $foreignTable := getTable $dot.Tables .ForeignKey.ForeignTable -}}
|
{{- $foreignTable := getTable $dot.Tables .ForeignKey.ForeignTable -}}
|
||||||
{{- $foreignTableFKeyCol := $foreignTable.GetColumn .ForeignKey.ForeignColumn -}}
|
{{- $foreignTableFKeyCol := $foreignTable.GetColumn .ForeignKey.ForeignColumn -}}
|
||||||
{{- $usesBytes := or (eq "[]byte" $foreignTableFKeyCol.Type) (eq "null.Bytes" $foreignTableFKeyCol.Type)}}
|
{{- $usesBytes := eq "[]byte" $foreignTableFKeyCol.Type}}
|
||||||
// Load{{.Function.Name}} allows an eager lookup of values, cached into the
|
// Load{{.Function.Name}} allows an eager lookup of values, cached into the
|
||||||
// loaded structs of the objects.
|
// loaded structs of the objects.
|
||||||
func ({{$varNameSingular}}L) Load{{.Function.Name}}(e boil.Executor, singular bool, {{$arg}} interface{}) error {
|
func ({{$varNameSingular}}L) Load{{.Function.Name}}(e boil.Executor, singular bool, {{$arg}} interface{}) error {
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
{{- $slice := printf "%sSlice" $txt.LocalTable.NameGo -}}
|
{{- $slice := printf "%sSlice" $txt.LocalTable.NameGo -}}
|
||||||
{{- $schemaForeignTable := .ForeignTable | $dot.SchemaTable -}}
|
{{- $schemaForeignTable := .ForeignTable | $dot.SchemaTable -}}
|
||||||
{{- $fkeyCol := $dot.Table.GetColumn .Column -}}
|
{{- $fkeyCol := $dot.Table.GetColumn .Column -}}
|
||||||
{{- $usesBytes := or (eq "[]byte" $fkeyCol.Type) (eq "null.Bytes" $fkeyCol.Type)}}
|
{{- $usesBytes := eq "[]byte" $fkeyCol.Type -}}
|
||||||
// Load{{$txt.Function.Name}} allows an eager lookup of values, cached into the
|
// Load{{$txt.Function.Name}} allows an eager lookup of values, cached into the
|
||||||
// loaded structs of the objects.
|
// loaded structs of the objects.
|
||||||
func ({{$varNameSingular}}L) Load{{$txt.Function.Name}}(e boil.Executor, singular bool, {{$arg}} interface{}) error {
|
func ({{$varNameSingular}}L) Load{{$txt.Function.Name}}(e boil.Executor, singular bool, {{$arg}} interface{}) error {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
{{- $localNameSingular := .ForeignKey.Table | singular | camelCase -}}
|
{{- $localNameSingular := .ForeignKey.Table | singular | camelCase -}}
|
||||||
{{- $foreignTable := getTable $dot.Tables .ForeignKey.ForeignTable -}}
|
{{- $foreignTable := getTable $dot.Tables .ForeignKey.ForeignTable -}}
|
||||||
{{- $foreignTableFKeyCol := $foreignTable.GetColumn .ForeignKey.ForeignColumn -}}
|
{{- $foreignTableFKeyCol := $foreignTable.GetColumn .ForeignKey.ForeignColumn -}}
|
||||||
{{- $usesBytes := or (eq "[]byte" $foreignTableFKeyCol.Type) (eq "null.Bytes" $foreignTableFKeyCol.Type)}}
|
{{- $usesBytes := eq "[]byte" $foreignTableFKeyCol.Type -}}
|
||||||
// Set{{.Function.Name}} of the {{.ForeignKey.Table | singular}} to the related item.
|
// Set{{.Function.Name}} of the {{.ForeignKey.Table | singular}} to the related item.
|
||||||
// Sets {{.Function.Receiver}}.R.{{.Function.Name}} to related.
|
// Sets {{.Function.Receiver}}.R.{{.Function.Name}} to related.
|
||||||
// Adds {{.Function.Receiver}} to related.R.{{.Function.ForeignName}}.
|
// Adds {{.Function.Receiver}} to related.R.{{.Function.ForeignName}}.
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- $rel := textsFromRelationship $dot.Tables $table . -}}
|
{{- $rel := textsFromRelationship $dot.Tables $table . -}}
|
||||||
{{- $fkeyCol := $dot.Table.GetColumn .Column -}}
|
{{- $fkeyCol := $dot.Table.GetColumn .Column -}}
|
||||||
{{- $usesBytes := or (eq "[]byte" $fkeyCol.Type) (eq "null.Bytes" $fkeyCol.Type)}}
|
{{- $usesBytes := eq "[]byte" $fkeyCol.Type}}
|
||||||
func test{{$rel.LocalTable.NameGo}}ToMany{{$rel.Function.Name}}(t *testing.T) {
|
func test{{$rel.LocalTable.NameGo}}ToMany{{$rel.Function.Name}}(t *testing.T) {
|
||||||
var err error
|
var err error
|
||||||
tx := MustTx(boil.Begin())
|
tx := MustTx(boil.Begin())
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
{{- $foreignVarNameSingular := .ForeignTable | singular | camelCase -}}
|
{{- $foreignVarNameSingular := .ForeignTable | singular | camelCase -}}
|
||||||
{{- $rel := textsFromRelationship $dot.Tables $table . -}}
|
{{- $rel := textsFromRelationship $dot.Tables $table . -}}
|
||||||
{{- $fkeyCol := $dot.Table.GetColumn .Column -}}
|
{{- $fkeyCol := $dot.Table.GetColumn .Column -}}
|
||||||
{{- $usesBytes := or (eq "[]byte" $fkeyCol.Type) (eq "null.Bytes" $fkeyCol.Type)}}
|
{{- $usesBytes := eq "[]byte" $fkeyCol.Type}}
|
||||||
func test{{$rel.LocalTable.NameGo}}ToManyAddOp{{$rel.Function.Name}}(t *testing.T) {
|
func test{{$rel.LocalTable.NameGo}}ToManyAddOp{{$rel.Function.Name}}(t *testing.T) {
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
{{- with .Rel -}}
|
{{- with .Rel -}}
|
||||||
{{- $foreignTable := getTable $dot.Tables .ForeignKey.ForeignTable -}}
|
{{- $foreignTable := getTable $dot.Tables .ForeignKey.ForeignTable -}}
|
||||||
{{- $foreignTableFKeyCol := $foreignTable.GetColumn .ForeignKey.ForeignColumn -}}
|
{{- $foreignTableFKeyCol := $foreignTable.GetColumn .ForeignKey.ForeignColumn -}}
|
||||||
{{- $usesBytes := or (eq "[]byte" $foreignTableFKeyCol.Type) (eq "null.Bytes" $foreignTableFKeyCol.Type)}}
|
{{- $usesBytes := eq "[]byte" $foreignTableFKeyCol.Type -}}
|
||||||
func test{{.LocalTable.NameGo}}ToOne{{.ForeignTable.NameGo}}_{{.Function.Name}}(t *testing.T) {
|
func test{{.LocalTable.NameGo}}ToOne{{.ForeignTable.NameGo}}_{{.Function.Name}}(t *testing.T) {
|
||||||
tx := MustTx(boil.Begin())
|
tx := MustTx(boil.Begin())
|
||||||
defer tx.Rollback()
|
defer tx.Rollback()
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
{{- $foreignVarNameSingular := .ForeignKey.ForeignTable | singular | camelCase -}}
|
{{- $foreignVarNameSingular := .ForeignKey.ForeignTable | singular | camelCase -}}
|
||||||
{{- $foreignTable := getTable $dot.Tables .ForeignKey.ForeignTable -}}
|
{{- $foreignTable := getTable $dot.Tables .ForeignKey.ForeignTable -}}
|
||||||
{{- $foreignTableFKeyCol := $foreignTable.GetColumn .ForeignKey.ForeignColumn -}}
|
{{- $foreignTableFKeyCol := $foreignTable.GetColumn .ForeignKey.ForeignColumn -}}
|
||||||
{{- $usesBytes := or (eq "[]byte" $foreignTableFKeyCol.Type) (eq "null.Bytes" $foreignTableFKeyCol.Type)}}
|
{{- $usesBytes := eq "[]byte" $foreignTableFKeyCol.Type -}}
|
||||||
func test{{.LocalTable.NameGo}}ToOneSetOp{{.ForeignTable.NameGo}}_{{.Function.Name}}(t *testing.T) {
|
func test{{.LocalTable.NameGo}}ToOneSetOp{{.ForeignTable.NameGo}}_{{.Function.Name}}(t *testing.T) {
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue