From 3ee6223e6440940deb956e8264a57f350a0d8287 Mon Sep 17 00:00:00 2001 From: aca Date: Thu, 23 Jan 2020 23:16:21 +0900 Subject: [PATCH] entc/gen: use empty slice instead of nil in sqlAll (#310) --- entc/gen/internal/bindata.go | 4 ++-- entc/gen/template/dialect/sql/query.tmpl | 2 +- entc/integration/config/ent/user_query.go | 4 ++-- entc/integration/customid/ent/blob_query.go | 4 ++-- entc/integration/customid/ent/group_query.go | 4 ++-- entc/integration/customid/ent/user_query.go | 6 +++--- entc/integration/ent/card_query.go | 6 +++--- entc/integration/ent/comment_query.go | 4 ++-- entc/integration/ent/fieldtype_query.go | 4 ++-- entc/integration/ent/file_query.go | 6 +++--- entc/integration/ent/filetype_query.go | 4 ++-- entc/integration/ent/group_query.go | 6 +++--- entc/integration/ent/groupinfo_query.go | 4 ++-- entc/integration/ent/item_query.go | 4 ++-- entc/integration/ent/node_query.go | 6 +++--- entc/integration/ent/pet_query.go | 6 +++--- entc/integration/ent/spec_query.go | 4 ++-- entc/integration/ent/user_query.go | 6 +++--- entc/integration/idtype/ent/user_query.go | 6 +++--- entc/integration/integration_test.go | 2 +- entc/integration/json/ent/user_query.go | 4 ++-- entc/integration/migrate/entv1/car_query.go | 6 +++--- entc/integration/migrate/entv1/user_query.go | 6 +++--- entc/integration/migrate/entv2/car_query.go | 6 +++--- entc/integration/migrate/entv2/group_query.go | 4 ++-- entc/integration/migrate/entv2/pet_query.go | 4 ++-- entc/integration/migrate/entv2/user_query.go | 4 ++-- entc/integration/template/ent/group_query.go | 4 ++-- entc/integration/template/ent/pet_query.go | 6 +++--- entc/integration/template/ent/user_query.go | 4 ++-- examples/edgeindex/ent/city_query.go | 4 ++-- examples/edgeindex/ent/street_query.go | 6 +++--- examples/entcpkg/ent/user_query.go | 4 ++-- examples/m2m2types/ent/group_query.go | 4 ++-- examples/m2m2types/ent/user_query.go | 4 ++-- examples/m2mbidi/ent/user_query.go | 4 ++-- examples/m2mrecur/ent/user_query.go | 4 ++-- examples/o2m2types/ent/pet_query.go | 6 +++--- examples/o2m2types/ent/user_query.go | 4 ++-- examples/o2mrecur/ent/node_query.go | 6 +++--- examples/o2o2types/ent/card_query.go | 6 +++--- examples/o2o2types/ent/user_query.go | 4 ++-- examples/o2obidi/ent/user_query.go | 6 +++--- examples/o2orecur/ent/node_query.go | 6 +++--- examples/start/ent/car_query.go | 6 +++--- examples/start/ent/group_query.go | 4 ++-- examples/start/ent/user_query.go | 4 ++-- examples/traversal/ent/group_query.go | 6 +++--- examples/traversal/ent/pet_query.go | 6 +++--- examples/traversal/ent/user_query.go | 4 ++-- 50 files changed, 119 insertions(+), 119 deletions(-) diff --git a/entc/gen/internal/bindata.go b/entc/gen/internal/bindata.go index e3f7b7f55..c54894a2c 100644 --- a/entc/gen/internal/bindata.go +++ b/entc/gen/internal/bindata.go @@ -761,7 +761,7 @@ func templateDialectSqlPredicateTmpl() (*asset, error) { return a, nil } -var _templateDialectSqlQueryTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\x5a\xdd\x6f\xdb\x48\x92\x7f\xa6\xfe\x8a\x1a\xc2\x37\x10\x0d\x99\xb6\x73\x87\x03\x4e\x81\x0f\xf0\xc6\x31\x20\x64\x26\x93\x1d\x67\x66\x1e\x0c\x61\x86\x26\x8b\x72\x43\x54\x53\x21\x5b\x8e\x03\x85\xff\xfb\xa2\xaa\x3f\xd8\x14\x29\xd9\xc9\x7c\xec\x2e\xb0\x0f\x89\xa5\xee\xea\xae\xea\xfa\xf8\x75\x55\xb5\xb6\xdb\xd3\xe3\xd1\xab\x72\xfd\xa9\x12\x8b\x7b\x05\x2f\xce\xce\xff\xef\x64\x5d\x61\x8d\x52\xc1\x75\x92\xe2\x5d\x59\x2e\x61\x26\xd3\x18\x2e\x8b\x02\x98\xa8\x06\x9a\xaf\x1e\x30\x8b\x47\xef\xef\x45\x0d\x75\xb9\xa9\x52\x84\xb4\xcc\x10\x44\x0d\x85\x48\x51\xd6\x98\xc1\x46\x66\x58\x81\xba\x47\xb8\x5c\x27\xe9\x3d\xc2\x8b\xf8\xcc\xce\x42\x5e\x6e\x64\x36\x12\x92\xe7\xbf\x9b\xbd\x7a\xfd\xf6\xe6\x35\xe4\xa2\x40\x30\x63\x55\x59\x2a\xc8\x44\x85\xa9\x2a\xab\x4f\x50\xe6\xa0\x3c\x66\xaa\x42\x8c\x47\xc7\xa7\x4d\x33\x1a\xd1\x19\xe0\x32\xcb\x84\x12\xa5\x4c\x0a\xc8\x05\x16\x59\x0d\x79\xa9\x99\xdf\x6d\x44\x91\x61\x15\x03\x53\x6f\xb7\x90\x61\x2e\x24\x42\x98\x89\xa4\xc0\x54\x9d\xd6\x1f\x8a\xd3\x0f\x1b\xac\x3e\x9d\xea\x95\x21\x34\xcd\x28\xd8\x6e\x4f\xe0\xa3\x50\xf7\x70\x14\x5f\x97\x15\x8a\x85\x7c\x83\x9f\x6a\x9e\x0a\x68\xfc\xfa\x4d\x0d\x77\x65\x59\x68\x4a\x94\x19\xf0\xee\xee\xe3\x41\x4e\xa1\x26\x86\xa3\xf5\x72\x01\xd3\x0b\x38\x8a\x6f\xd2\x72\x8d\xf1\xbb\x24\x5d\x26\x0b\xb4\xb3\x46\x74\xa2\x58\x27\x75\x9a\x14\x8e\xf0\x6f\x66\xc6\x10\x56\x98\xa2\x78\xd0\x94\xee\xb3\x5b\x4e\xd2\xe4\x1b\x99\xc2\xb8\x43\xdb\x34\x70\xec\x73\x69\x9a\x08\xea\x0f\xc5\x65\x51\x8c\x53\xf5\x08\x69\x29\x15\x3e\xaa\xf8\x95\xfe\x1b\xc1\xf8\x76\xce\xf4\xf1\xdb\x64\x45\x22\x4e\x00\xab\xaa\xac\x22\xd8\x8e\x82\x87\xa4\x82\xf1\x28\x08\x64\x99\x61\x0d\x3b\x84\xa3\xe0\xa0\x36\x9d\x3a\x2f\x60\x47\xbe\xd8\xcc\x98\x0d\x8c\x66\x83\xe0\xd7\x7a\x8d\xe9\x00\x39\xeb\xf6\x66\x8d\xe9\x38\x1a\x05\xd1\x61\x1b\x76\x26\xdf\xbc\xce\x16\x68\x27\x02\x91\xd3\xce\x55\x22\x17\x08\x47\x62\x02\x47\x48\x7a\x8d\xa1\x69\xb6\x5b\x10\x39\x2c\x14\x1c\x09\x38\x23\x05\x7e\xfe\x4c\xa4\x5a\xb0\x21\xe1\xb7\x5b\x67\x39\xb4\xea\x80\x6f\x2e\x40\x8a\xc2\xad\x23\xfd\x05\x1d\x35\xa8\x6a\x83\x3c\xe6\x04\x75\x47\x27\xe1\x2c\xa1\x5e\xc7\xca\x88\xdf\x96\x19\xc6\xaf\xca\x62\xb3\x92\xb4\x43\xb2\x5e\xa3\xcc\xc6\xfd\xb9\x09\x2b\xcd\x73\x34\x5f\x33\x71\x1c\x47\x23\xcd\xd6\x67\xaa\x77\xb9\x49\x13\xf9\x73\x52\x6c\x90\xf6\x27\x77\x1a\x47\x70\x3b\x17\x52\x61\x95\x27\x29\x6e\xf5\x39\xc8\x01\x48\x5b\xdf\xfa\x0e\xb0\x4d\x4b\x99\x8b\xc5\xb4\x67\x30\x3d\xde\x38\xc7\x71\x82\xf3\xd7\x09\xd0\x1f\x92\xe8\x41\xf3\x9d\x5e\xf0\x48\x5c\x3b\x51\xc8\xd0\x87\xcd\xdc\xd3\xd7\x83\x3d\x83\x61\xa5\xbf\x6b\x5e\x71\xbe\xb4\xfb\x7a\xba\xe8\x5a\xa0\x42\xb5\xa9\x24\xe8\x65\xa3\xc0\xe9\xe7\xb2\xae\xc5\x42\x5a\xdd\x18\x2e\x71\x1c\x7b\x1a\x8a\x74\xc4\xb0\x20\x22\x87\x02\xa5\x3e\x68\x04\x17\x17\x70\xa6\xe5\x33\xdb\xe7\x2b\x15\xbf\x26\xe2\x7c\x1c\x5a\xa0\x68\x9a\x29\x18\x2e\x69\x52\x14\x98\xf1\xc9\xca\x8d\xe2\xaf\x42\x2e\xa0\xb5\x51\x48\xc2\x37\x9e\x41\x98\xd1\x6d\xcb\xf2\xe4\x7c\xde\x1e\x86\xcf\x9e\xf0\xd6\xe6\xfc\x5a\x7e\xad\x84\x66\x44\xd2\x62\xc5\xf0\x52\x7f\x28\x16\x55\xb2\xbe\x8f\xff\x4e\xc1\x46\xae\x55\x13\x5c\x4c\x7a\xb6\xcd\x2a\xfa\x34\x01\xd6\x4e\xf4\x92\xd7\x6b\xcf\xe7\x83\x5a\xce\xa2\x60\x1c\xb1\x5c\x86\x74\xe2\x09\x49\x76\x12\xc5\xc8\x7a\xa8\x89\x51\xd4\x18\xea\x05\xb1\x73\x09\x7c\x54\x64\xb9\x23\x08\x7f\xc4\x34\xf4\x24\x0c\x89\x3a\xa4\xb5\x16\x0e\x40\xe1\x6a\x5d\x24\x6a\xf0\x6a\xc0\x64\x81\x55\x51\x26\x99\x90\x8b\x90\xb1\x60\xc7\x2f\xfc\xcf\x7d\x81\xbf\x08\x81\x5f\x95\x1b\xa9\xf6\x60\xb0\x90\xca\xc7\x5d\x8d\x84\xd3\x27\xa0\xd0\xc8\xe3\x4c\xc7\x0c\x9e\x6d\xba\x2f\x13\xfe\xf5\xa3\xa8\xf7\x09\x4f\xf7\xa5\x2f\xbd\x9c\x58\xaf\xda\x95\xc0\xd7\x42\xe4\xdc\xaf\xef\x3e\x79\x52\xd4\x38\xd9\x1b\x2d\xe9\x3d\xa6\x4b\x40\x12\x09\x65\x8a\x53\xf8\xaf\x87\x90\x79\x6a\xaf\xb6\x76\x82\xff\x87\xb3\x2f\xb5\x93\xa7\x60\x38\xee\x06\x05\x8d\x76\x8c\xf3\x6d\x7f\x9e\xce\x40\x16\x98\x7a\x93\xf4\xdd\xce\x05\xef\x93\xbb\x02\xa7\x3d\xb4\xe6\xe1\x09\x11\x18\x40\xef\x93\x58\xa4\x27\xa2\xd9\x95\xcf\xe0\x9a\xf2\x1b\xc7\x21\x78\xff\x69\x8d\x53\x9d\x2e\xc5\xbc\xc9\xec\x2a\xa6\x31\xb2\x58\xad\xec\x2d\xcf\xa4\x7a\xcf\x3e\x2f\xbb\x8c\x57\x24\x52\xd9\x05\xfc\x3f\xff\x77\x5d\x95\xab\x3e\xf0\xd7\x1f\x0a\x9a\xfc\x49\x8a\x0f\x1b\x9c\xf2\x85\x37\xb1\x10\xb0\xae\x87\x3c\x62\x5d\x61\x26\xd2\x44\x61\xfd\x92\x41\x62\x5d\x47\x64\x36\x76\x06\x0d\xc0\xef\x2c\x85\xc5\xe0\x1a\x0b\xce\x1e\xd9\x3e\xf1\x8d\xf9\x16\x69\x9c\xa5\xf4\x50\x70\xbe\xc4\x18\xb2\xb6\xd7\xc3\xba\xbe\x15\x73\xb7\xd4\x5d\x01\x8d\x03\x28\xb1\x12\x6a\x48\x40\x9e\x78\x69\xe6\x3d\x4f\xd5\xc2\x7d\xc7\xc3\x17\x70\xcc\xf3\x76\xb3\x32\xcf\x6b\x1c\xdc\x4d\xcf\xbc\xb4\x14\xbd\xfd\x7e\xd0\xe3\x17\x70\xac\x29\x0e\x2b\xaf\xac\x32\xac\xf6\xe9\xed\x07\x9a\xfc\xf3\x74\x66\x82\x8c\x79\x7d\x19\x94\x70\xb0\x98\xf0\x72\xa2\x10\x4b\x2f\x2f\xa6\xa9\x2b\x8d\xd6\xbb\x7b\x1a\x18\x73\xd3\x51\x34\x0a\xd4\x39\x2d\xb2\x25\x01\x07\xd3\x78\x30\xc4\xa2\x51\xe0\x54\xe1\xad\xd0\x52\x8c\xd5\xb9\x8d\xb2\xde\x6a\x33\x4e\x37\x27\xff\x23\xff\x1f\xab\x73\x0d\x62\x03\x61\xe0\x9b\xd6\x71\x1c\x04\x44\x8f\xc0\xca\xe1\xbe\x3f\x53\x1a\x36\x08\x59\xf1\xd7\x09\xac\x5b\x43\xee\x8f\x35\x16\x6b\xed\x9b\xf6\x59\x1b\xb0\xbf\x0d\xae\xfd\x4a\xa7\x3f\x3d\x35\x81\x25\x6a\x58\x25\x32\x4b\xb8\x28\x24\x41\x0c\x6d\x5a\x24\x9b\x1a\x63\xf8\x05\xa1\x56\x49\xa5\xf4\x1a\x4e\x01\x32\xcc\x93\x4d\xa1\x74\xc6\x36\x81\x44\x66\x50\x3e\x60\x55\x09\xaa\x57\x15\xdc\x61\x51\x7e\xa4\xb4\x5e\x22\x66\x54\xd4\x7a\x6a\xd6\x51\x36\x36\x31\x16\xe9\x28\x1e\xaf\x12\x75\x1f\x7f\x9f\x3c\xce\xa4\xfa\xef\x17\xd1\x57\x03\x83\xe3\xa2\x77\xd5\xc8\xd0\xb9\x98\x2c\xc5\x88\xab\xbc\xb6\xb0\x3c\x3d\xd6\xd7\xcf\xe9\x3a\xd1\xe7\x13\x12\x6b\x2e\x76\x79\x18\x16\x28\xb1\x4a\xa8\x1c\x66\x15\x31\x55\x99\x43\x02\x0b\xf1\x80\x12\x30\x5b\xe0\x73\xca\x61\x5a\xd7\x16\xc3\x47\x92\xb3\x2c\x2e\x58\x48\x02\x62\xc7\xc9\xe5\x47\xa3\x72\x4f\x80\xbc\x2a\x57\x86\x83\x5e\x8b\x7e\x95\x4b\x99\x57\x67\x1b\x12\x88\xb6\x21\x0b\x80\x2a\x59\xfe\x45\x45\x48\x4e\xb3\x2c\xbe\x2a\x3b\xfb\xf9\x05\xaf\xdd\xf6\xc7\x56\xe7\xa3\xa0\x56\xb8\xee\xa4\xab\x6f\xf1\xe3\x8d\xc2\x35\x15\xa9\xed\x7d\x48\xb1\x49\xe6\x92\xfd\x2b\x16\x7a\xe3\x7a\x60\xe7\xb2\x1b\x0a\x54\x83\x5b\xd1\xc4\xe7\xf5\xbe\x64\x4e\xa8\x6f\xd8\x61\x76\xfd\x49\x6f\xb4\xcb\xb8\xbb\x39\x69\x74\xec\xbe\xe9\x45\x3f\x62\xc1\x0b\x9d\x94\x18\xcf\xea\x99\x7c\xc0\xaa\x6e\xc7\x7a\x07\x44\x2d\xcf\xee\x7d\x4e\x4a\x17\x39\x4d\x7f\xff\xe2\x7b\x38\x31\x85\xf2\x9e\x1d\xde\xbd\xf1\x96\xc7\x71\xec\x8a\xd8\xa2\xc6\xa7\xd6\x6a\xc0\xf2\xd6\xfb\x15\xb0\x5e\x4b\x47\x8f\x46\x01\x7b\x1a\x23\xa8\x67\xe5\x1b\x54\x6f\x51\x2c\xee\xef\xca\xaa\x7e\xf2\x3e\x98\x00\x79\x49\xb4\x27\xb6\xc8\x87\x9f\x8e\xad\x44\x87\x93\xe7\xf7\x2e\xcc\xb8\xa8\x7a\x4e\xd7\xa9\x2a\x57\xff\x8e\x61\xc6\xd6\x10\xd9\x10\xe4\x59\x77\xe1\x70\x99\xd5\x37\xaa\xa2\xea\xb4\x69\x44\x36\x8e\x48\xdb\x05\xbb\xe0\xec\xaa\xd5\xfc\x5f\x17\xb0\x22\xfb\x4f\x60\xfe\xf5\x81\xf9\x3b\xa3\xf2\x40\xf8\x74\x2b\xf3\x83\xa1\x70\xd8\xab\x99\x40\xe4\x26\xb6\x06\xbc\x7a\x5f\x43\xef\xa5\x59\xe2\xdd\xed\x5d\xb3\x68\x65\xe5\x4b\xce\xcd\x57\xc9\x12\xc7\xb7\x73\x73\xec\x9f\x75\x52\x72\x36\xf1\x3a\x1f\x9c\x40\x8b\xac\xa5\x5e\x25\xeb\x5b\xbf\x40\x83\xa6\xd9\x6d\xc5\xee\xac\x36\x29\x9a\x6d\xfe\xe8\x2c\x4d\xf7\xd8\x74\xca\x2e\xb2\xfa\x96\x01\x6a\x76\x35\x07\xdd\x1d\xe2\x71\x12\xd2\xb5\xc6\xf2\xa5\xed\x8b\xcd\xae\x5c\x56\xef\x7a\xbd\x41\x40\x80\x42\x72\xde\xce\xbb\xe1\x60\x64\x74\x34\xb4\x65\xe7\x20\x3d\xd2\xf9\x4e\xcb\x98\xb9\xf1\x7f\x03\x45\x34\x59\xb3\x53\x48\x07\x01\x0d\x4d\x77\x48\xda\xd9\xc0\x44\xd7\x74\x28\xdc\x34\xc5\x9e\x72\xfb\x40\xe4\x1d\xa8\xc0\x07\xa2\x4d\x2f\x31\x7f\x5c\xa5\x3a\x35\x45\xd7\x60\xb5\x15\x04\x75\xfc\xcb\x3d\x56\x0c\x20\xf1\xcc\x76\xe6\x9e\xc1\xec\x56\xf7\xa9\x77\x4e\x7a\xde\x22\xef\x99\x0b\xae\xf9\x04\xf2\x25\xd7\x07\x91\x2f\x21\x6d\x5a\x6e\x38\x9d\x0d\x89\xfb\xdb\x4d\x51\xcc\xa4\xfa\xdf\xff\x09\x5d\x17\x9c\xbd\xf1\xa7\x1a\xab\x2b\x0e\x4d\xdb\x01\xa7\x55\x17\x7a\x92\x16\x19\xfb\x7a\x40\x6f\x76\x17\xf2\xe0\xe6\xad\x87\xf4\x59\x08\x49\x1c\x5a\x8a\xbd\x7c\xda\x76\xe8\xd4\x75\xac\x5f\xf8\x2d\x6b\xa3\x67\x93\x6e\xef\xcc\x7d\x6b\x8f\xd3\x34\xdb\x66\xa2\x3b\xda\x42\xf2\xb7\xc6\xd7\x95\x6e\xc9\x1a\x0e\xe5\x46\x4d\x40\x48\xd8\xd3\xf5\xa5\x80\x60\x92\x72\x49\xc7\x2f\x37\x2a\x1e\x1f\xb7\x7c\xb4\x0d\x08\x84\xbe\x29\x97\xf0\xf9\x33\x20\xab\xb3\xc5\x95\x60\xb8\x43\xbc\x91\xf8\xb8\xc6\x54\x61\x06\x22\xd3\x85\x0e\x67\x27\x14\x7c\x27\xe5\x46\x85\x66\xe3\xc6\x88\x20\xa4\x95\x40\x48\x23\x00\x9f\xac\xcf\x9f\x74\xfd\xfb\xd8\x0b\xb9\xc3\xbd\xdc\x28\x36\x8a\x81\xd8\x9d\x36\xed\x65\xb5\x08\x21\xa4\x73\x87\x10\x72\xc3\x2a\x64\x6f\x82\xd0\x9a\x39\x74\x56\x79\x7e\xcb\xf6\x74\xf5\x62\xa5\xfb\xdb\xa1\x7d\xc8\xf1\xfc\x24\x10\xf2\x69\x89\x84\xf4\x04\x72\xce\xd7\x11\x4b\x7b\xc7\x1f\x26\x15\x21\xaf\xb3\x53\x56\xdf\x5a\xc5\xcd\x3b\x56\x7a\x9e\x5d\xf8\x26\x10\x19\xb9\x26\x23\xb2\x69\x85\xda\x2d\x77\xfc\xc3\xe0\xba\xbb\x08\xcc\x00\x79\xb6\x4f\xce\x3b\xdd\x9a\xb1\x79\x97\xbc\x1d\x6f\x9f\x71\x02\xbf\xed\xef\x85\x90\x7d\xa8\x19\x7c\x62\xe0\xae\xfe\x57\x3d\x31\x74\x1f\x19\x3c\xc5\xfc\xa6\xef\x6b\x7d\x35\x85\x1a\x40\xcd\xc5\x13\x92\x62\x7e\xb3\x3d\x62\x23\x9a\xce\x68\x34\x16\x0f\xa7\x83\xb3\xab\x99\xb4\x5a\x72\x60\x2a\x6d\xce\xe3\xda\xdc\x7a\x23\xf3\xc2\x1a\x79\xa7\xde\x2b\x35\x3f\x8d\x18\x31\xec\xa5\xee\xdd\xe8\x96\x83\x59\x69\x5e\x1c\xb4\xcb\x68\x2b\x50\x02\x3c\x1f\xf5\xfd\x65\x9f\x6a\x3c\x9f\xd9\xd1\x8c\xf6\x21\xbd\x0e\x33\xad\x26\x69\x33\x03\xe3\x3a\x3b\x1d\x42\x3f\xe3\xd0\xc2\xdd\x8a\xb9\x7e\xa7\x31\xf7\xd6\x8d\xaa\x36\xa9\xe2\xb0\xa2\x5a\xa5\xfb\x00\x78\x98\x78\x02\xd2\x63\xed\xde\x63\xe8\x86\xd3\x37\xc8\x0f\x1f\xe5\xf5\x1b\xfb\x0c\x98\xf9\xc9\xd7\x60\x0e\x32\x94\x85\xd1\xc7\xa1\x4c\xec\x79\x09\xcc\x01\x6d\x88\x1c\xf2\x65\xfb\x2e\x27\xe6\xdd\x23\xbe\xb1\x87\x7c\x49\x64\x1d\xef\x08\x3a\x91\xc9\x51\x79\x9c\x2f\xa3\x56\xc7\x04\x15\xc7\xf9\x72\xde\x55\xa6\x1d\x9d\x38\x8e\x3b\xca\x7b\xae\x97\xff\x0b\x79\xb8\x3d\xd7\xef\xf0\xf1\x5c\x3f\x18\x9f\x2c\xf1\x93\xf5\xf7\x5d\x13\x84\x7f\xba\xcf\xcb\x3d\x6e\xfc\x35\x75\xc3\x3e\x8f\xdd\x5b\x3b\x3c\xe5\xa9\x24\xcd\xe9\x31\xbc\x2a\x29\x91\x54\x50\x73\x2d\x7f\x42\x2c\xd4\x7d\xa2\x20\xa9\x10\x6a\x55\x56\x98\x41\x52\x53\xda\x63\x7f\xc0\x93\x25\x2a\xb9\x4b\x6a\x84\xe3\x53\xaf\xb6\xe4\xb2\x28\x91\x19\x8c\x65\xa9\x7a\x39\x64\xa4\x47\xbc\x8e\x81\x75\x79\xe7\x60\xb5\xaa\xd2\x52\x3e\xc4\x97\xaa\x14\x2d\x4a\x58\x8b\x0c\x7a\xdb\xa0\xbf\xb9\xcb\xae\x5f\xf1\x88\x2c\x72\xd2\x7a\x76\xd8\x57\x1c\x75\x04\xe8\xfe\x58\xc3\xc5\xa3\x47\x67\xcb\x2d\xfa\xba\x13\x7b\xfd\x5f\x80\xf8\x31\xe9\xba\xf2\x7e\xf3\xc1\x18\x71\x7c\xa8\x8e\xf8\x82\x32\xa2\x57\xe5\x77\xcb\x83\xe6\x9f\x15\xf6\x06\x2b\xf7\x80\xa4\x87\xa8\xdd\x64\x75\x1f\x00\x3c\x2b\xea\x45\xcd\x5b\x91\x70\x7c\xf3\x0d\x06\xbf\x9f\xa3\xf9\x30\xfb\xd7\xa0\xd1\x8e\x70\xc7\xf9\x72\x58\xc2\xc3\xf0\xe3\x4a\x2e\xfd\x1c\x0b\x4d\x23\xdb\x52\xd1\xbb\x42\x9e\xb8\x8b\x3b\xd9\xeb\xee\xcf\x23\x76\x5e\x30\xfe\x18\x48\x79\x76\x5f\xc8\x4f\xb4\x5d\x1b\x28\xa9\x3a\xbf\xbd\xbb\xac\x16\xed\x1c\x3f\x8a\xfb\xb3\xad\xab\xe9\x26\xed\xa6\x28\x14\xa1\xa9\x47\xe2\x95\xa1\xa3\x3e\xd2\xe9\x67\xf6\x2e\xd6\xe9\x31\x87\x76\x1a\x25\x2d\xc0\x5d\x97\xd5\x2a\x51\x33\xa9\xdf\x35\x13\x96\x2e\xe6\x32\x79\x02\xe7\x67\xe6\xd7\x6d\x6c\x24\x62\x74\x9f\xd4\xef\x2a\xcc\xc5\xa3\x27\x1b\x15\xd7\xa1\xd9\x95\xf6\xd0\xec\xac\x98\xfa\x44\xa6\xd2\x3a\x71\x3f\x61\x69\x5b\x81\x2d\xdb\x7d\xbf\x71\xfc\x47\x00\x00\x00\xff\xff\xaf\x27\x45\x76\x3e\x2a\x00\x00") +var _templateDialectSqlQueryTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\x5a\xdd\x6f\xdb\x48\x92\x7f\xa6\xfe\x8a\x1a\xc2\x37\x10\x0d\x99\xb6\x73\x87\x03\x4e\x81\x0f\xf0\xc6\x31\x20\x64\x26\x93\x1d\x67\x66\x1e\x0c\x61\x86\x26\x8b\x72\x43\x54\x53\x21\x5b\x8e\x03\x85\xff\xfb\xa2\xaa\x3f\xd8\x14\x29\xd9\xc9\x7c\xec\x2e\xb0\x0f\x89\xa5\xee\xea\xae\xea\xfa\xf8\x75\x55\xb5\xb6\xdb\xd3\xe3\xd1\xab\x72\xfd\xa9\x12\x8b\x7b\x05\x2f\xce\xce\xff\xef\x64\x5d\x61\x8d\x52\xc1\x75\x92\xe2\x5d\x59\x2e\x61\x26\xd3\x18\x2e\x8b\x02\x98\xa8\x06\x9a\xaf\x1e\x30\x8b\x47\xef\xef\x45\x0d\x75\xb9\xa9\x52\x84\xb4\xcc\x10\x44\x0d\x85\x48\x51\xd6\x98\xc1\x46\x66\x58\x81\xba\x47\xb8\x5c\x27\xe9\x3d\xc2\x8b\xf8\xcc\xce\x42\x5e\x6e\x64\x36\x12\x92\xe7\xbf\x9b\xbd\x7a\xfd\xf6\xe6\x35\xe4\xa2\x40\x30\x63\x55\x59\x2a\xc8\x44\x85\xa9\x2a\xab\x4f\x50\xe6\xa0\x3c\x66\xaa\x42\x8c\x47\xc7\xa7\x4d\x33\x1a\xd1\x19\xe0\x32\xcb\x84\x12\xa5\x4c\x0a\xc8\x05\x16\x59\x0d\x79\xa9\x99\xdf\x6d\x44\x91\x61\x15\x03\x53\x6f\xb7\x90\x61\x2e\x24\x42\x98\x89\xa4\xc0\x54\x9d\xd6\x1f\x8a\xd3\x0f\x1b\xac\x3e\x9d\xea\x95\x21\x34\xcd\x28\xd8\x6e\x4f\xe0\xa3\x50\xf7\x70\x14\x5f\x97\x15\x8a\x85\x7c\x83\x9f\x6a\x9e\x0a\x68\xfc\xfa\x4d\x0d\x77\x65\x59\x68\x4a\x94\x19\xf0\xee\xee\xe3\x41\x4e\xa1\x26\x86\xa3\xf5\x72\x01\xd3\x0b\x38\x8a\x6f\xd2\x72\x8d\xf1\xbb\x24\x5d\x26\x0b\xb4\xb3\x46\x74\xa2\x58\x27\x75\x9a\x14\x8e\xf0\x6f\x66\xc6\x10\x56\x98\xa2\x78\xd0\x94\xee\xb3\x5b\x4e\xd2\xe4\x1b\x99\xc2\xb8\x43\xdb\x34\x70\xec\x73\x69\x9a\x08\xea\x0f\xc5\x65\x51\x8c\x53\xf5\x08\x69\x29\x15\x3e\xaa\xf8\x95\xfe\x1b\xc1\xf8\x76\xce\xf4\xf1\xdb\x64\x45\x22\x4e\x00\xab\xaa\xac\x22\xd8\x8e\x82\x87\xa4\x82\xf1\x28\x08\x64\x99\x61\x0d\x3b\x84\x70\xb1\x3b\xb2\x25\x2d\x1e\xd2\xb0\x53\xf1\x05\xec\xc8\x1c\x9b\x19\xb3\x81\xd1\x76\x10\xfc\x5a\xaf\x31\x1d\x20\x67\x7d\xdf\xac\x31\x1d\x47\xa3\x20\x3a\x6c\xd7\xce\xe4\x9b\xd7\xd9\x02\xed\x44\x20\x72\xda\xb9\x4a\xe4\x02\xe1\x48\x4c\xe0\x08\x49\xd7\x31\x9d\x65\x0b\x22\x87\x85\x82\x23\x01\x67\x74\xda\xcf\x9f\x89\x54\x0b\x36\x24\xfc\x76\xeb\xac\x89\x4e\x45\xdf\x5c\x80\x14\x85\x5b\x47\x3a\x0d\x3a\x6a\x50\xd5\x06\x79\xcc\x09\xea\x8e\x4e\xc2\x59\x42\xbd\x8e\x95\x11\xbf\x2d\x33\x8c\x5f\x95\xc5\x66\x25\x69\x87\x64\xbd\x46\x99\x8d\xfb\x73\x13\x56\x9a\xe7\x7c\xbe\x66\xe2\x38\x8e\x46\x9a\xad\xcf\x54\xef\x72\x93\x26\xf2\xe7\xa4\xd8\x20\xed\x4f\x2e\x36\x8e\xe0\x76\x2e\xa4\xc2\x2a\x4f\x52\xdc\xea\x73\x90\x53\x90\xb6\xbe\xed\xb8\x40\x5a\xca\x5c\x2c\xa6\x3d\x83\xe9\xf1\xc6\x39\x93\x13\x9c\xbf\x4e\x80\xfe\x90\x44\x0f\x9a\xef\xf4\x82\x47\xe2\xda\x89\x42\x86\x3e\x6c\xe6\x9e\xbe\x1e\xec\x19\x0c\x2b\xfd\x5d\xf3\x8a\xf3\xa5\xdd\xd7\xd3\x45\xd7\x02\x15\xaa\x4d\x25\x41\x2f\x1b\x05\x4e\x3f\x97\x75\x2d\x16\xd2\xea\xc6\x70\x89\xe3\xd8\xd3\x50\xa4\xa3\x88\x05\x11\x39\x14\x28\xf5\x41\x23\xb8\xb8\x80\x33\x2d\x9f\xd9\x3e\x5f\xa9\xf8\x35\x11\xe7\xe3\xd0\x82\x47\xd3\x4c\xc1\x70\x49\x93\xa2\xc0\x8c\x4f\x56\x6e\x14\x7f\x15\x72\x01\xad\x8d\x42\x12\xbe\xf1\x0c\xc2\x8c\x6e\x5b\x96\x27\xe7\xf3\xf6\x30\x7c\xf6\x84\xb7\x36\xe7\xd7\xf2\x6b\x25\x34\x23\x92\x16\x2b\x86\x9c\xfa\x43\xb1\xa8\x92\xf5\x7d\xfc\x77\x0a\x36\x72\xad\x9a\x20\x64\xd2\xb3\x6d\x56\xd1\xa7\x09\xb0\x76\xa2\x97\xbc\x5e\x7b\x3e\x1f\xd4\x72\x16\x05\x63\x8b\xe5\x32\xa4\x13\x4f\x48\xb2\x93\x28\x46\xd6\x43\x4d\x8c\xa2\xc6\x55\x2f\x88\x9d\x4b\xe0\xa3\x22\xcb\x1d\x41\xf8\x23\xa6\xa1\x27\x61\x48\xd4\x21\xad\xb5\x70\x00\x0a\x57\xeb\x22\x51\x83\xd7\x05\x26\x0b\xac\x8a\x32\xc9\x84\x5c\x84\x8c\x05\x3b\x7e\xe1\x7f\xee\x0b\xfc\x45\xa8\xfc\xaa\xdc\x48\xb5\x07\x97\x85\x54\x3e\x16\x6b\x24\x9c\x3e\x01\x85\x46\x1e\x67\x3a\x66\xf0\x6c\xd3\x7d\x99\xf0\xaf\x1f\x45\xbd\x4f\x78\xba\x43\x7d\xe9\xe5\xc4\x7a\xd5\xae\x04\xbe\x16\x22\xe7\x7e\x7d\xf7\xc9\x93\xa2\xc6\xc9\xde\x68\x49\xef\x31\x5d\x02\x92\x48\x28\x53\x9c\xc2\x7f\x3d\x84\xcc\x53\x7b\xb5\xb5\x13\xfc\x3f\x9c\x7d\xa9\x9d\x3c\x05\xc3\x71\x37\x28\x68\xb4\x63\x9c\x6f\xfb\xf3\x74\x06\xb2\xc0\xd4\x9b\xa4\xef\x76\x2e\x78\x9f\xdc\x15\x38\xed\xa1\x35\x0f\x4f\x88\xc0\x00\x7a\x9f\xc4\x22\x3d\x11\xcd\xae\x7c\x06\xd7\x94\xf3\x38\x0e\xc1\xfb\x4f\x6b\x9c\xea\x14\x2a\xe6\x4d\x66\x57\x31\x8d\x91\xc5\x6a\x65\x6f\x7e\x26\xd5\x7b\xf6\x79\xd9\x65\xbc\x22\x91\xca\x2e\xe0\xff\xf9\xbf\xeb\xaa\x5c\xf5\x81\xbf\xfe\x50\xd0\xe4\x4f\x52\x7c\xd8\xe0\x94\x2f\xbc\x89\x85\x80\x75\x3d\xe4\x11\xeb\x0a\x33\x91\x26\x0a\xeb\x97\x0c\x12\xeb\x3a\x22\xb3\xb1\x33\x68\x00\x7e\x67\x29\x2c\x06\xd7\x58\x70\x46\xc9\xf6\x89\x6f\xcc\xb7\x48\xe3\x2c\xa5\x8c\x82\x73\x28\xc6\x90\xb5\xbd\x1e\xd6\xf5\xad\x98\xbb\xa5\xee\x0a\x68\x1c\x40\x89\x95\x50\x43\x02\xf2\xc4\x4b\x33\xef\x79\xaa\x16\xee\x3b\x1e\xbe\x80\x63\x9e\xb7\x9b\x95\x79\x5e\xe3\xe0\x6e\x7a\xe6\xa5\xa5\xe8\xed\xf7\x83\x1e\xbf\x80\x63\x4d\x71\x58\x79\x65\x95\x61\xb5\x4f\x6f\x3f\xd0\xe4\x9f\xa7\x33\x13\x64\xcc\xeb\xcb\xa0\x84\x83\xc5\x84\x97\x13\x85\x58\x7a\xb9\x32\x4d\x5d\x69\xb4\xde\xdd\xd3\xc0\x98\x9b\x8e\xa2\x51\xa0\xce\x69\x91\x2d\x13\x38\x98\xc6\x83\x21\x16\x8d\x02\xa7\x0a\x6f\x85\x96\x62\xac\xce\x6d\x94\xf5\x56\x9b\x71\xba\x39\xf9\x1f\xf9\xff\x58\x9d\x6b\x10\x1b\x08\x03\xdf\xb4\x8e\xe3\x20\x20\x7a\x04\x56\x0e\xf7\xfd\x99\xd2\xb0\x41\xc8\x8a\xbf\x4e\x60\xdd\x1a\x72\x7f\xac\xb1\x58\x6b\xdf\xb4\xcf\xda\x80\xfd\x6d\x70\xed\x57\x3a\xfd\xe9\xa9\x09\x2c\x51\xc3\x2a\x91\x59\xc2\x85\x22\x09\x62\x68\xd3\x22\xd9\xd4\x18\xc3\x2f\x08\xb5\x4a\x2a\xa5\xd7\x70\x0a\x90\x61\x9e\x6c\x0a\xa5\x33\xb6\x09\x24\x32\x83\xf2\x01\xab\x4a\x50\x0d\xab\xe0\x0e\x8b\xf2\x23\xa5\xf5\x12\x31\xa3\x42\xd7\x53\xb3\x8e\xb2\xb1\x89\xb1\x48\x47\xf1\x78\x95\xa8\xfb\xf8\xfb\xe4\x71\x26\xd5\x7f\xbf\x88\xbe\x1a\x18\x1c\x17\xbd\xab\x46\x86\xce\xc5\x64\x29\x46\x5c\xf9\xb5\xc5\xe6\xe9\xb1\xbe\x7e\x4e\xd7\x89\x3e\x9f\x90\x58\x73\x01\xcc\xc3\xb0\x40\x89\x55\x42\x25\x32\xab\x88\xa9\xca\x1c\x12\x58\x88\x07\x94\x80\xd9\x02\x9f\x53\x22\xd3\xba\xb6\x40\x3e\x92\x9c\x65\x71\xc1\x42\x12\x10\x3b\x4e\x2e\x3f\x1a\x95\x7b\x02\xe4\x55\xb9\x32\x1c\xf4\x5a\xf4\x2b\x5f\xca\xbc\x3a\xdb\x90\x40\xb4\x0d\x59\x00\x54\xc9\xf2\x2f\x2a\x42\x72\x9a\x65\xf1\x55\xd9\xd9\xcf\x2f\x82\xed\xb6\x3f\xb6\x3a\x1f\x05\xb5\xc2\x75\x27\x5d\x7d\x8b\x1f\x6f\x14\xae\xa9\x70\x6d\xef\x43\x8a\x4d\x32\x97\xec\x5f\xb1\xd0\x1b\xd7\x03\x3b\x97\xdd\x50\xa0\x1a\xdc\x8a\x26\x3e\xaf\xf7\x25\x73\x42\x7d\xc3\x0e\xb3\xeb\x4f\x7a\xa3\x5d\xc6\xdd\xcd\x49\xa3\x63\xf7\x4d\x2f\xfa\x11\x0b\x5e\xe8\xa4\xc4\x78\x56\xcf\xe4\x03\x56\x75\x3b\xd6\x3b\x20\x6a\x79\x76\xef\x73\x52\xba\xc8\x69\xfa\xfb\x17\xdf\xc3\x89\x29\x94\xf7\xec\xf0\xee\x8d\xb7\x3c\x8e\x63\x57\xc4\x16\x35\x3e\xb5\x56\x03\x96\xb7\xde\xaf\x80\xf5\x5a\x3a\x7a\x34\x0a\xd8\xd3\x18\x41\x3d\x2b\xdf\xa0\x7a\x8b\x62\x71\x7f\x57\x56\xf5\x93\xf7\xc1\x04\xc8\x4b\xa2\x3d\xb1\x45\x3e\xfc\x74\x6c\x25\x3a\x9c\x3c\xbf\x77\x61\xc6\x45\xd5\x73\x3a\x51\x55\xb9\xfa\x77\x0c\x33\xb6\x86\xc8\x86\x20\xcf\xba\x0b\x87\xcb\xac\xbe\x51\x15\x55\xa7\x4d\x23\xb2\x71\x44\xda\x2e\xd8\x05\x67\x57\xad\xe6\xff\xba\x80\x15\xd9\x7f\x02\xf3\xaf\x0f\xcc\xdf\x19\x95\x07\xc2\xa7\x5b\x99\x1f\x0c\x85\xc3\x5e\xcd\x04\x22\x37\xb1\x35\xe0\xd5\xfb\x1a\x7a\x2f\xcd\x12\xef\x6e\xef\x9a\x45\x2b\x2b\x5f\x72\x6e\xbe\x4a\x96\x38\xbe\x9d\x9b\x63\xff\xac\x93\x92\xb3\x89\xd7\xf9\xe0\x04\x5a\x64\x2d\xf5\x2a\x59\xdf\xfa\x05\x1a\x34\xcd\x6e\x7b\x76\x67\xb5\x49\xd1\x6c\xf3\x47\x67\x69\xba\xc7\xa6\x53\x76\x91\xd5\xb7\x0c\x50\xb3\xab\x39\xe8\xee\x10\x8f\x93\x90\xae\x35\x96\x2f\x6d\x5f\x6c\x76\xe5\xb2\x7a\xd7\xff\x0d\x02\x02\x14\x92\xf3\x76\xde\x0d\x07\x23\xa3\xa3\xa1\x2d\x3b\x07\xe9\x91\xce\x77\x9a\xc6\xcc\x8d\xff\x1b\x28\xa2\xc9\x9a\x9d\x42\x3a\x08\x68\x68\xba\x43\xd2\xce\x06\x26\xba\xa6\x43\xe1\xa6\x29\xf6\x94\xdb\x07\x22\xef\x40\x05\x3e\x10\x6d\x7a\x89\xf9\xe3\x2a\xd5\xa9\x29\xba\x06\xab\xad\x20\xa8\xe3\x5f\xee\xb1\x62\x00\x89\x67\xb6\x33\xf7\x0c\x66\xb7\xba\x4f\xbd\x73\xd2\xf3\x16\x79\xcf\x5c\x70\xcd\x27\x90\x2f\xb9\x3e\x88\x7c\x09\x69\xd3\x72\xc3\xe9\x6c\x48\xdc\xdf\x6e\x8a\x62\x26\xd5\xff\xfe\x4f\xe8\xba\xe0\xec\x8d\x3f\xd5\x58\x5d\x71\x68\xda\x0e\x38\xad\xba\xd0\x93\xb4\xc8\xd8\xd7\x03\x7a\xb3\xbb\x90\x07\x37\x6f\x3d\xa4\xcf\x42\x48\xe2\xd0\x52\xec\xe5\xd3\xb6\x43\xa7\xae\x63\xfd\xc2\x6f\x59\x1b\x3d\x9b\x74\x7b\x67\xee\x5b\x7b\x9c\xa6\xd9\x36\x13\xdd\xd1\x16\x92\xbf\x35\xbe\xae\x74\x4b\xd6\x70\x28\x37\x6a\x02\x42\xc2\x9e\xae\x2f\x05\x04\x93\x94\x4b\x3a\x7e\xb9\x51\xf1\xf8\xb8\xe5\xa3\x6d\x40\x20\xf4\x4d\xb9\x84\xcf\x9f\x01\x59\x9d\x2d\xae\x04\xc3\x1d\xe2\x8d\xc4\xc7\x35\xa6\x0a\x33\x10\x99\x2e\x74\x38\x3b\xa1\xe0\x3b\x29\x37\x2a\x34\x1b\x37\x46\x04\x21\xad\x04\x42\x1a\x01\xf8\x64\x7d\xfe\xa4\xeb\xdf\xc7\x5e\xc8\x1d\xee\xe5\x46\xb1\x51\x0c\xc4\xee\xb4\x69\x2f\xab\x45\x08\x21\x9d\x3b\x84\x90\x1b\x56\x21\x7b\x13\x84\xd6\xcc\xa1\xb3\xca\xf3\x5b\xb6\xa7\xab\x17\x2b\xdd\xdf\x0e\xed\x43\x8e\xe7\x27\x81\x90\x4f\x4b\x24\xa4\x27\x90\x73\xbe\x8e\x58\xda\x3b\xfe\x30\xa9\x08\x79\x9d\x9d\xb2\xfa\xd6\x2a\x6e\xde\xb1\xd2\xf3\xec\xc2\x37\x81\xc8\xc8\x35\x19\x91\x4d\x2b\xd4\x6e\xb9\xe3\x1f\x06\xd7\xdd\x45\x60\x06\xc8\xb3\x7d\x72\xde\xe9\xd6\x8c\xcd\xbb\xe4\xed\x78\xfb\x8c\x13\xf8\x6d\x7f\x2f\x84\xec\x43\xcd\xe0\x13\x03\x77\xf5\xbf\xea\x89\xa1\xfb\xc8\xe0\x29\xe6\x37\x7d\x5f\xeb\xab\x29\xd4\x00\x6a\x2e\x9e\x90\x14\xf3\x9b\xed\x11\x1b\xd1\x74\x46\xa3\xb1\x78\x38\x1d\x9c\x5d\xcd\xa4\xd5\x92\x03\x53\x69\x73\x1e\xd7\xe6\xd6\x1b\x99\x57\xd7\xc8\x3b\xf5\x5e\xa9\xf9\x69\xc4\x88\x61\x2f\x75\xef\x46\xb7\x1c\xcc\x4a\xf3\xe2\xa0\x5d\x46\x5b\x81\x12\xe0\xf9\xa8\xef\x2f\xfb\x54\xe3\xf9\xcc\x8e\x66\xb4\x0f\xe9\x75\x98\x69\x35\x49\x9b\x19\x18\xd7\xd9\xe9\x10\xfa\x19\x87\x16\xee\x56\xcc\xf5\x3b\x8d\xb9\xb7\x6e\x54\xb5\x49\x15\x87\x95\x7e\x3d\xf6\x1f\x00\x0f\x13\x4f\x40\x7a\xac\xdd\x7b\x0c\xdd\x70\xfa\x06\xf9\xe1\xa3\xbc\x7e\x63\x9f\x01\x33\x3f\xf9\x1a\xcc\x41\x86\xb2\x30\xfa\x38\x94\x89\x3d\x2f\x81\x39\xa0\x0d\x91\x43\xbe\x6c\xdf\xe5\xc4\xbc\x7b\xc4\x37\xf6\x90\x2f\x89\xac\xe3\x1d\x41\x27\x32\x39\x2a\x8f\xf3\x65\xd4\xea\x98\xa0\xe2\x38\x5f\xce\xbb\xca\xb4\xa3\x13\xc7\x71\x47\x79\xcf\xf5\xf2\x7f\x21\x0f\xb7\xe7\xfa\x1d\x3e\x9e\xeb\x07\xe3\x93\x25\x7e\xb2\xfe\xbe\x6b\x82\xf0\x4f\xf7\x79\xb9\xc7\x8d\xbf\xa6\x6e\xd8\xe7\xb1\x7b\x6b\x87\xa7\x3c\x95\xa4\x39\x3d\x86\x57\x25\x25\x92\x0a\x6a\xae\xe5\x4f\x88\x85\xba\x4f\x14\x24\x15\x42\xad\xca\x0a\x33\x48\x6a\x4a\x7b\xec\x8f\x7a\xb2\x44\x25\x77\x49\x8d\x70\x7c\xea\xd5\x96\x5c\x16\x25\x32\x83\xb1\x2c\x55\x2f\x87\x8c\xf4\x88\xd7\x31\xb0\x2e\xef\x1c\xac\x56\x55\x5a\xca\x87\xf8\x52\x95\xa2\x45\x09\x6b\x91\x41\x6f\x1b\xf4\x37\x77\xd9\xf5\x2b\x1e\x91\x45\x4e\x5a\xcf\x0e\xfb\x8a\xa3\x8e\x00\xdd\x1f\x6b\xb8\x78\xf4\xe8\x6c\xb9\x45\x5f\x77\x62\xaf\xff\x0b\x10\x3f\x26\x5d\x57\xde\x6f\x3e\x18\x23\x8e\x0f\xd5\x11\x5f\x50\x46\xf4\xaa\xfc\x6e\x79\xd0\xfc\xb3\xc2\xde\x60\xe5\x1e\x90\xf4\x10\xb5\x9b\xac\xee\x03\x80\x67\x45\xbd\xa8\x79\x2b\x12\x8e\x6f\xbe\xc1\xe0\xf7\x73\x34\x1f\x66\xff\x1a\x34\xda\x11\xee\x38\x5f\x0e\x4b\x78\x18\x7e\x5c\xc9\xa5\x9f\x63\xa1\x69\x64\x5b\x2a\x7a\x57\xc8\x13\x77\x71\x27\x7b\xdd\xfd\x79\xc4\xce\x0b\xc6\x1f\x03\x29\xcf\xee\x0b\xf9\x89\xb6\x6b\x03\x25\x55\xe7\xf7\x78\x97\xd5\xa2\x9d\xe3\x47\x71\x7f\xb6\x75\x35\xdd\xa4\xdd\x14\x85\x22\x34\xf5\x48\xbc\x32\x74\xd4\x47\x3a\xfd\xcc\xde\xc5\x3a\x3d\xe6\xd0\x4e\xa3\xa4\x05\xb8\xeb\xb2\x5a\x25\x6a\x26\xf5\xbb\x66\xc2\xd2\xc5\x5c\x26\x4f\xe0\xfc\xcc\xfc\xba\x8d\x8d\x44\x8c\xee\x93\xfa\x5d\x85\xb9\x78\xf4\x64\xa3\xe2\x3a\x34\xbb\xd2\x1e\x9a\x9d\x15\x53\x9f\xc8\x54\x5a\x27\xee\x27\x2c\x6d\x2b\xb0\x65\xbb\xef\x77\x8f\xff\x08\x00\x00\xff\xff\x8b\x67\xb7\x20\x52\x2a\x00\x00") func templateDialectSqlQueryTmplBytes() ([]byte, error) { return bindataRead( @@ -776,7 +776,7 @@ func templateDialectSqlQueryTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/dialect/sql/query.tmpl", size: 10814, mode: os.FileMode(420), modTime: time.Unix(1, 0)} + info := bindataFileInfo{name: "template/dialect/sql/query.tmpl", size: 10834, mode: os.FileMode(420), modTime: time.Unix(1, 0)} a := &asset{bytes: bytes, info: info} return a, nil } diff --git a/entc/gen/template/dialect/sql/query.tmpl b/entc/gen/template/dialect/sql/query.tmpl index 58124e94f..99a001517 100644 --- a/entc/gen/template/dialect/sql/query.tmpl +++ b/entc/gen/template/dialect/sql/query.tmpl @@ -18,7 +18,7 @@ in the LICENSE file in the root directory of this source tree. func ({{ $receiver }} *{{ $builder }}) sqlAll(ctx context.Context) ([]*{{ $.Name }}, error) { var ( - nodes []*{{ $.Name }} + nodes []*{{ $.Name }} = []*{{ $.Name }}{} {{- with $.ForeignKeys }} withFKs = {{ $receiver }}.withFKs {{- end }} diff --git a/entc/integration/config/ent/user_query.go b/entc/integration/config/ent/user_query.go index 8b9b98414..8189f0766 100644 --- a/entc/integration/config/ent/user_query.go +++ b/entc/integration/config/ent/user_query.go @@ -243,8 +243,8 @@ func (uq *UserQuery) Select(field string, fields ...string) *UserSelect { func (uq *UserQuery) sqlAll(ctx context.Context) ([]*User, error) { var ( - nodes []*User - _spec = uq.querySpec() + nodes []*User = []*User{} + _spec = uq.querySpec() ) _spec.ScanValues = func() []interface{} { node := &User{config: uq.config} diff --git a/entc/integration/customid/ent/blob_query.go b/entc/integration/customid/ent/blob_query.go index 827b650d9..13d65ff69 100644 --- a/entc/integration/customid/ent/blob_query.go +++ b/entc/integration/customid/ent/blob_query.go @@ -268,8 +268,8 @@ func (bq *BlobQuery) Select(field string, fields ...string) *BlobSelect { func (bq *BlobQuery) sqlAll(ctx context.Context) ([]*Blob, error) { var ( - nodes []*Blob - _spec = bq.querySpec() + nodes []*Blob = []*Blob{} + _spec = bq.querySpec() ) _spec.ScanValues = func() []interface{} { node := &Blob{config: bq.config} diff --git a/entc/integration/customid/ent/group_query.go b/entc/integration/customid/ent/group_query.go index 99284b62b..46f54c224 100644 --- a/entc/integration/customid/ent/group_query.go +++ b/entc/integration/customid/ent/group_query.go @@ -270,8 +270,8 @@ func (gq *GroupQuery) Select(field string, fields ...string) *GroupSelect { func (gq *GroupQuery) sqlAll(ctx context.Context) ([]*Group, error) { var ( - nodes []*Group - _spec = gq.querySpec() + nodes []*Group = []*Group{} + _spec = gq.querySpec() ) _spec.ScanValues = func() []interface{} { node := &Group{config: gq.config} diff --git a/entc/integration/customid/ent/user_query.go b/entc/integration/customid/ent/user_query.go index 990eb561f..f789b0bdb 100644 --- a/entc/integration/customid/ent/user_query.go +++ b/entc/integration/customid/ent/user_query.go @@ -319,9 +319,9 @@ func (uq *UserQuery) Select(field string, fields ...string) *UserSelect { func (uq *UserQuery) sqlAll(ctx context.Context) ([]*User, error) { var ( - nodes []*User - withFKs = uq.withFKs - _spec = uq.querySpec() + nodes []*User = []*User{} + withFKs = uq.withFKs + _spec = uq.querySpec() ) if uq.withParent != nil { withFKs = true diff --git a/entc/integration/ent/card_query.go b/entc/integration/ent/card_query.go index 3b1dfc843..3407227e8 100644 --- a/entc/integration/ent/card_query.go +++ b/entc/integration/ent/card_query.go @@ -321,9 +321,9 @@ func (cq *CardQuery) Select(field string, fields ...string) *CardSelect { func (cq *CardQuery) sqlAll(ctx context.Context) ([]*Card, error) { var ( - nodes []*Card - withFKs = cq.withFKs - _spec = cq.querySpec() + nodes []*Card = []*Card{} + withFKs = cq.withFKs + _spec = cq.querySpec() ) if cq.withOwner != nil { withFKs = true diff --git a/entc/integration/ent/comment_query.go b/entc/integration/ent/comment_query.go index 04a6bc3cb..2de1df2b5 100644 --- a/entc/integration/ent/comment_query.go +++ b/entc/integration/ent/comment_query.go @@ -267,8 +267,8 @@ func (cq *CommentQuery) Select(field string, fields ...string) *CommentSelect { func (cq *CommentQuery) sqlAll(ctx context.Context) ([]*Comment, error) { var ( - nodes []*Comment - _spec = cq.querySpec() + nodes []*Comment = []*Comment{} + _spec = cq.querySpec() ) _spec.ScanValues = func() []interface{} { node := &Comment{config: cq.config} diff --git a/entc/integration/ent/fieldtype_query.go b/entc/integration/ent/fieldtype_query.go index 8ef2605fc..77b681f22 100644 --- a/entc/integration/ent/fieldtype_query.go +++ b/entc/integration/ent/fieldtype_query.go @@ -267,8 +267,8 @@ func (ftq *FieldTypeQuery) Select(field string, fields ...string) *FieldTypeSele func (ftq *FieldTypeQuery) sqlAll(ctx context.Context) ([]*FieldType, error) { var ( - nodes []*FieldType - _spec = ftq.querySpec() + nodes []*FieldType = []*FieldType{} + _spec = ftq.querySpec() ) _spec.ScanValues = func() []interface{} { node := &FieldType{config: ftq.config} diff --git a/entc/integration/ent/file_query.go b/entc/integration/ent/file_query.go index cdec6617d..81c18111f 100644 --- a/entc/integration/ent/file_query.go +++ b/entc/integration/ent/file_query.go @@ -319,9 +319,9 @@ func (fq *FileQuery) Select(field string, fields ...string) *FileSelect { func (fq *FileQuery) sqlAll(ctx context.Context) ([]*File, error) { var ( - nodes []*File - withFKs = fq.withFKs - _spec = fq.querySpec() + nodes []*File = []*File{} + withFKs = fq.withFKs + _spec = fq.querySpec() ) if fq.withOwner != nil || fq.withType != nil { withFKs = true diff --git a/entc/integration/ent/filetype_query.go b/entc/integration/ent/filetype_query.go index 52d0a0df9..9f73750e1 100644 --- a/entc/integration/ent/filetype_query.go +++ b/entc/integration/ent/filetype_query.go @@ -295,8 +295,8 @@ func (ftq *FileTypeQuery) Select(field string, fields ...string) *FileTypeSelect func (ftq *FileTypeQuery) sqlAll(ctx context.Context) ([]*FileType, error) { var ( - nodes []*FileType - _spec = ftq.querySpec() + nodes []*FileType = []*FileType{} + _spec = ftq.querySpec() ) _spec.ScanValues = func() []interface{} { node := &FileType{config: ftq.config} diff --git a/entc/integration/ent/group_query.go b/entc/integration/ent/group_query.go index 10b6df834..ee9f1826c 100644 --- a/entc/integration/ent/group_query.go +++ b/entc/integration/ent/group_query.go @@ -370,9 +370,9 @@ func (gq *GroupQuery) Select(field string, fields ...string) *GroupSelect { func (gq *GroupQuery) sqlAll(ctx context.Context) ([]*Group, error) { var ( - nodes []*Group - withFKs = gq.withFKs - _spec = gq.querySpec() + nodes []*Group = []*Group{} + withFKs = gq.withFKs + _spec = gq.querySpec() ) if gq.withInfo != nil { withFKs = true diff --git a/entc/integration/ent/groupinfo_query.go b/entc/integration/ent/groupinfo_query.go index 19f618be0..ac03b9dad 100644 --- a/entc/integration/ent/groupinfo_query.go +++ b/entc/integration/ent/groupinfo_query.go @@ -295,8 +295,8 @@ func (giq *GroupInfoQuery) Select(field string, fields ...string) *GroupInfoSele func (giq *GroupInfoQuery) sqlAll(ctx context.Context) ([]*GroupInfo, error) { var ( - nodes []*GroupInfo - _spec = giq.querySpec() + nodes []*GroupInfo = []*GroupInfo{} + _spec = giq.querySpec() ) _spec.ScanValues = func() []interface{} { node := &GroupInfo{config: giq.config} diff --git a/entc/integration/ent/item_query.go b/entc/integration/ent/item_query.go index 90ea40dff..9243ba609 100644 --- a/entc/integration/ent/item_query.go +++ b/entc/integration/ent/item_query.go @@ -243,8 +243,8 @@ func (iq *ItemQuery) Select(field string, fields ...string) *ItemSelect { func (iq *ItemQuery) sqlAll(ctx context.Context) ([]*Item, error) { var ( - nodes []*Item - _spec = iq.querySpec() + nodes []*Item = []*Item{} + _spec = iq.querySpec() ) _spec.ScanValues = func() []interface{} { node := &Item{config: iq.config} diff --git a/entc/integration/ent/node_query.go b/entc/integration/ent/node_query.go index d88ae5334..42916a78d 100644 --- a/entc/integration/ent/node_query.go +++ b/entc/integration/ent/node_query.go @@ -319,9 +319,9 @@ func (nq *NodeQuery) Select(field string, fields ...string) *NodeSelect { func (nq *NodeQuery) sqlAll(ctx context.Context) ([]*Node, error) { var ( - nodes []*Node - withFKs = nq.withFKs - _spec = nq.querySpec() + nodes []*Node = []*Node{} + withFKs = nq.withFKs + _spec = nq.querySpec() ) if nq.withPrev != nil { withFKs = true diff --git a/entc/integration/ent/pet_query.go b/entc/integration/ent/pet_query.go index 316fbfffb..bf963d569 100644 --- a/entc/integration/ent/pet_query.go +++ b/entc/integration/ent/pet_query.go @@ -318,9 +318,9 @@ func (pq *PetQuery) Select(field string, fields ...string) *PetSelect { func (pq *PetQuery) sqlAll(ctx context.Context) ([]*Pet, error) { var ( - nodes []*Pet - withFKs = pq.withFKs - _spec = pq.querySpec() + nodes []*Pet = []*Pet{} + withFKs = pq.withFKs + _spec = pq.querySpec() ) if pq.withTeam != nil || pq.withOwner != nil { withFKs = true diff --git a/entc/integration/ent/spec_query.go b/entc/integration/ent/spec_query.go index 8d452e637..c50b4167d 100644 --- a/entc/integration/ent/spec_query.go +++ b/entc/integration/ent/spec_query.go @@ -271,8 +271,8 @@ func (sq *SpecQuery) Select(field string, fields ...string) *SpecSelect { func (sq *SpecQuery) sqlAll(ctx context.Context) ([]*Spec, error) { var ( - nodes []*Spec - _spec = sq.querySpec() + nodes []*Spec = []*Spec{} + _spec = sq.querySpec() ) _spec.ScanValues = func() []interface{} { node := &Spec{config: sq.config} diff --git a/entc/integration/ent/user_query.go b/entc/integration/ent/user_query.go index 0b8d7de8b..0f3a13042 100644 --- a/entc/integration/ent/user_query.go +++ b/entc/integration/ent/user_query.go @@ -539,9 +539,9 @@ func (uq *UserQuery) Select(field string, fields ...string) *UserSelect { func (uq *UserQuery) sqlAll(ctx context.Context) ([]*User, error) { var ( - nodes []*User - withFKs = uq.withFKs - _spec = uq.querySpec() + nodes []*User = []*User{} + withFKs = uq.withFKs + _spec = uq.querySpec() ) if uq.withSpouse != nil || uq.withParent != nil { withFKs = true diff --git a/entc/integration/idtype/ent/user_query.go b/entc/integration/idtype/ent/user_query.go index cb591911e..000e50d04 100644 --- a/entc/integration/idtype/ent/user_query.go +++ b/entc/integration/idtype/ent/user_query.go @@ -342,9 +342,9 @@ func (uq *UserQuery) Select(field string, fields ...string) *UserSelect { func (uq *UserQuery) sqlAll(ctx context.Context) ([]*User, error) { var ( - nodes []*User - withFKs = uq.withFKs - _spec = uq.querySpec() + nodes []*User = []*User{} + withFKs = uq.withFKs + _spec = uq.querySpec() ) if uq.withSpouse != nil { withFKs = true diff --git a/entc/integration/integration_test.go b/entc/integration/integration_test.go index c04ac2ac8..47c416a87 100644 --- a/entc/integration/integration_test.go +++ b/entc/integration/integration_test.go @@ -546,7 +546,7 @@ func Relation(t *testing.T, client *ent.Client) { t.Log("query users with or condition") require.Len(client.User.Query().Where(user.Or(user.Name("a8m"), user.Name("neta"))).AllX(ctx), 2) require.Len(client.User.Query().Where(user.Or(user.Name("a8m"), user.Name("noam"))).AllX(ctx), 1) - require.Zero(client.User.Query().Where(user.Or(user.Name("alex"), user.Name("noam"))).AllX(ctx)) + require.Len(client.User.Query().Where(user.Or(user.Name("alex"), user.Name("noam"))).AllX(ctx), 0) t.Log("query using the in predicate") require.Len(client.User.Query().Where(user.NameIn("a8m", "neta")).AllX(ctx), 2) diff --git a/entc/integration/json/ent/user_query.go b/entc/integration/json/ent/user_query.go index b3f3f693b..0343d26cd 100644 --- a/entc/integration/json/ent/user_query.go +++ b/entc/integration/json/ent/user_query.go @@ -267,8 +267,8 @@ func (uq *UserQuery) Select(field string, fields ...string) *UserSelect { func (uq *UserQuery) sqlAll(ctx context.Context) ([]*User, error) { var ( - nodes []*User - _spec = uq.querySpec() + nodes []*User = []*User{} + _spec = uq.querySpec() ) _spec.ScanValues = func() []interface{} { node := &User{config: uq.config} diff --git a/entc/integration/migrate/entv1/car_query.go b/entc/integration/migrate/entv1/car_query.go index d678da634..2881cf23d 100644 --- a/entc/integration/migrate/entv1/car_query.go +++ b/entc/integration/migrate/entv1/car_query.go @@ -270,9 +270,9 @@ func (cq *CarQuery) Select(field string, fields ...string) *CarSelect { func (cq *CarQuery) sqlAll(ctx context.Context) ([]*Car, error) { var ( - nodes []*Car - withFKs = cq.withFKs - _spec = cq.querySpec() + nodes []*Car = []*Car{} + withFKs = cq.withFKs + _spec = cq.querySpec() ) if cq.withOwner != nil { withFKs = true diff --git a/entc/integration/migrate/entv1/user_query.go b/entc/integration/migrate/entv1/user_query.go index 6352f5265..6593bb356 100644 --- a/entc/integration/migrate/entv1/user_query.go +++ b/entc/integration/migrate/entv1/user_query.go @@ -367,9 +367,9 @@ func (uq *UserQuery) Select(field string, fields ...string) *UserSelect { func (uq *UserQuery) sqlAll(ctx context.Context) ([]*User, error) { var ( - nodes []*User - withFKs = uq.withFKs - _spec = uq.querySpec() + nodes []*User = []*User{} + withFKs = uq.withFKs + _spec = uq.querySpec() ) if uq.withParent != nil || uq.withSpouse != nil { withFKs = true diff --git a/entc/integration/migrate/entv2/car_query.go b/entc/integration/migrate/entv2/car_query.go index 0828ee9f3..961cebefd 100644 --- a/entc/integration/migrate/entv2/car_query.go +++ b/entc/integration/migrate/entv2/car_query.go @@ -270,9 +270,9 @@ func (cq *CarQuery) Select(field string, fields ...string) *CarSelect { func (cq *CarQuery) sqlAll(ctx context.Context) ([]*Car, error) { var ( - nodes []*Car - withFKs = cq.withFKs - _spec = cq.querySpec() + nodes []*Car = []*Car{} + withFKs = cq.withFKs + _spec = cq.querySpec() ) if cq.withOwner != nil { withFKs = true diff --git a/entc/integration/migrate/entv2/group_query.go b/entc/integration/migrate/entv2/group_query.go index cc0941ea1..36743b8d5 100644 --- a/entc/integration/migrate/entv2/group_query.go +++ b/entc/integration/migrate/entv2/group_query.go @@ -243,8 +243,8 @@ func (gq *GroupQuery) Select(field string, fields ...string) *GroupSelect { func (gq *GroupQuery) sqlAll(ctx context.Context) ([]*Group, error) { var ( - nodes []*Group - _spec = gq.querySpec() + nodes []*Group = []*Group{} + _spec = gq.querySpec() ) _spec.ScanValues = func() []interface{} { node := &Group{config: gq.config} diff --git a/entc/integration/migrate/entv2/pet_query.go b/entc/integration/migrate/entv2/pet_query.go index c43308d96..3a14faee8 100644 --- a/entc/integration/migrate/entv2/pet_query.go +++ b/entc/integration/migrate/entv2/pet_query.go @@ -243,8 +243,8 @@ func (pq *PetQuery) Select(field string, fields ...string) *PetSelect { func (pq *PetQuery) sqlAll(ctx context.Context) ([]*Pet, error) { var ( - nodes []*Pet - _spec = pq.querySpec() + nodes []*Pet = []*Pet{} + _spec = pq.querySpec() ) _spec.ScanValues = func() []interface{} { node := &Pet{config: pq.config} diff --git a/entc/integration/migrate/entv2/user_query.go b/entc/integration/migrate/entv2/user_query.go index 83e4d1226..263826382 100644 --- a/entc/integration/migrate/entv2/user_query.go +++ b/entc/integration/migrate/entv2/user_query.go @@ -294,8 +294,8 @@ func (uq *UserQuery) Select(field string, fields ...string) *UserSelect { func (uq *UserQuery) sqlAll(ctx context.Context) ([]*User, error) { var ( - nodes []*User - _spec = uq.querySpec() + nodes []*User = []*User{} + _spec = uq.querySpec() ) _spec.ScanValues = func() []interface{} { node := &User{config: uq.config} diff --git a/entc/integration/template/ent/group_query.go b/entc/integration/template/ent/group_query.go index 455c755c0..3603cecd6 100644 --- a/entc/integration/template/ent/group_query.go +++ b/entc/integration/template/ent/group_query.go @@ -267,8 +267,8 @@ func (gq *GroupQuery) Select(field string, fields ...string) *GroupSelect { func (gq *GroupQuery) sqlAll(ctx context.Context) ([]*Group, error) { var ( - nodes []*Group - _spec = gq.querySpec() + nodes []*Group = []*Group{} + _spec = gq.querySpec() ) _spec.ScanValues = func() []interface{} { node := &Group{config: gq.config} diff --git a/entc/integration/template/ent/pet_query.go b/entc/integration/template/ent/pet_query.go index b9682ff00..c085eef21 100644 --- a/entc/integration/template/ent/pet_query.go +++ b/entc/integration/template/ent/pet_query.go @@ -294,9 +294,9 @@ func (pq *PetQuery) Select(field string, fields ...string) *PetSelect { func (pq *PetQuery) sqlAll(ctx context.Context) ([]*Pet, error) { var ( - nodes []*Pet - withFKs = pq.withFKs - _spec = pq.querySpec() + nodes []*Pet = []*Pet{} + withFKs = pq.withFKs + _spec = pq.querySpec() ) if pq.withOwner != nil { withFKs = true diff --git a/entc/integration/template/ent/user_query.go b/entc/integration/template/ent/user_query.go index 4c0cf17cc..bc2948c39 100644 --- a/entc/integration/template/ent/user_query.go +++ b/entc/integration/template/ent/user_query.go @@ -318,8 +318,8 @@ func (uq *UserQuery) Select(field string, fields ...string) *UserSelect { func (uq *UserQuery) sqlAll(ctx context.Context) ([]*User, error) { var ( - nodes []*User - _spec = uq.querySpec() + nodes []*User = []*User{} + _spec = uq.querySpec() ) _spec.ScanValues = func() []interface{} { node := &User{config: uq.config} diff --git a/examples/edgeindex/ent/city_query.go b/examples/edgeindex/ent/city_query.go index e3830d54a..c762e72ef 100644 --- a/examples/edgeindex/ent/city_query.go +++ b/examples/edgeindex/ent/city_query.go @@ -294,8 +294,8 @@ func (cq *CityQuery) Select(field string, fields ...string) *CitySelect { func (cq *CityQuery) sqlAll(ctx context.Context) ([]*City, error) { var ( - nodes []*City - _spec = cq.querySpec() + nodes []*City = []*City{} + _spec = cq.querySpec() ) _spec.ScanValues = func() []interface{} { node := &City{config: cq.config} diff --git a/examples/edgeindex/ent/street_query.go b/examples/edgeindex/ent/street_query.go index 1c76213be..4dcb5a843 100644 --- a/examples/edgeindex/ent/street_query.go +++ b/examples/edgeindex/ent/street_query.go @@ -294,9 +294,9 @@ func (sq *StreetQuery) Select(field string, fields ...string) *StreetSelect { func (sq *StreetQuery) sqlAll(ctx context.Context) ([]*Street, error) { var ( - nodes []*Street - withFKs = sq.withFKs - _spec = sq.querySpec() + nodes []*Street = []*Street{} + withFKs = sq.withFKs + _spec = sq.querySpec() ) if sq.withCity != nil { withFKs = true diff --git a/examples/entcpkg/ent/user_query.go b/examples/entcpkg/ent/user_query.go index 498db1444..db7e8ef9d 100644 --- a/examples/entcpkg/ent/user_query.go +++ b/examples/entcpkg/ent/user_query.go @@ -243,8 +243,8 @@ func (uq *UserQuery) Select(field string, fields ...string) *UserSelect { func (uq *UserQuery) sqlAll(ctx context.Context) ([]*User, error) { var ( - nodes []*User - _spec = uq.querySpec() + nodes []*User = []*User{} + _spec = uq.querySpec() ) _spec.ScanValues = func() []interface{} { node := &User{config: uq.config} diff --git a/examples/m2m2types/ent/group_query.go b/examples/m2m2types/ent/group_query.go index 93931cbc0..37ae19e89 100644 --- a/examples/m2m2types/ent/group_query.go +++ b/examples/m2m2types/ent/group_query.go @@ -294,8 +294,8 @@ func (gq *GroupQuery) Select(field string, fields ...string) *GroupSelect { func (gq *GroupQuery) sqlAll(ctx context.Context) ([]*Group, error) { var ( - nodes []*Group - _spec = gq.querySpec() + nodes []*Group = []*Group{} + _spec = gq.querySpec() ) _spec.ScanValues = func() []interface{} { node := &Group{config: gq.config} diff --git a/examples/m2m2types/ent/user_query.go b/examples/m2m2types/ent/user_query.go index 5b2e6f8c2..f91e66cfe 100644 --- a/examples/m2m2types/ent/user_query.go +++ b/examples/m2m2types/ent/user_query.go @@ -294,8 +294,8 @@ func (uq *UserQuery) Select(field string, fields ...string) *UserSelect { func (uq *UserQuery) sqlAll(ctx context.Context) ([]*User, error) { var ( - nodes []*User - _spec = uq.querySpec() + nodes []*User = []*User{} + _spec = uq.querySpec() ) _spec.ScanValues = func() []interface{} { node := &User{config: uq.config} diff --git a/examples/m2mbidi/ent/user_query.go b/examples/m2mbidi/ent/user_query.go index 151efbde7..52164f055 100644 --- a/examples/m2mbidi/ent/user_query.go +++ b/examples/m2mbidi/ent/user_query.go @@ -293,8 +293,8 @@ func (uq *UserQuery) Select(field string, fields ...string) *UserSelect { func (uq *UserQuery) sqlAll(ctx context.Context) ([]*User, error) { var ( - nodes []*User - _spec = uq.querySpec() + nodes []*User = []*User{} + _spec = uq.querySpec() ) _spec.ScanValues = func() []interface{} { node := &User{config: uq.config} diff --git a/examples/m2mrecur/ent/user_query.go b/examples/m2mrecur/ent/user_query.go index 91295b7b7..0e54e7007 100644 --- a/examples/m2mrecur/ent/user_query.go +++ b/examples/m2mrecur/ent/user_query.go @@ -317,8 +317,8 @@ func (uq *UserQuery) Select(field string, fields ...string) *UserSelect { func (uq *UserQuery) sqlAll(ctx context.Context) ([]*User, error) { var ( - nodes []*User - _spec = uq.querySpec() + nodes []*User = []*User{} + _spec = uq.querySpec() ) _spec.ScanValues = func() []interface{} { node := &User{config: uq.config} diff --git a/examples/o2m2types/ent/pet_query.go b/examples/o2m2types/ent/pet_query.go index 792dd1cc1..0276e7fa0 100644 --- a/examples/o2m2types/ent/pet_query.go +++ b/examples/o2m2types/ent/pet_query.go @@ -294,9 +294,9 @@ func (pq *PetQuery) Select(field string, fields ...string) *PetSelect { func (pq *PetQuery) sqlAll(ctx context.Context) ([]*Pet, error) { var ( - nodes []*Pet - withFKs = pq.withFKs - _spec = pq.querySpec() + nodes []*Pet = []*Pet{} + withFKs = pq.withFKs + _spec = pq.querySpec() ) if pq.withOwner != nil { withFKs = true diff --git a/examples/o2m2types/ent/user_query.go b/examples/o2m2types/ent/user_query.go index f59231977..9600e17b2 100644 --- a/examples/o2m2types/ent/user_query.go +++ b/examples/o2m2types/ent/user_query.go @@ -294,8 +294,8 @@ func (uq *UserQuery) Select(field string, fields ...string) *UserSelect { func (uq *UserQuery) sqlAll(ctx context.Context) ([]*User, error) { var ( - nodes []*User - _spec = uq.querySpec() + nodes []*User = []*User{} + _spec = uq.querySpec() ) _spec.ScanValues = func() []interface{} { node := &User{config: uq.config} diff --git a/examples/o2mrecur/ent/node_query.go b/examples/o2mrecur/ent/node_query.go index 9a580931d..4e72fe71c 100644 --- a/examples/o2mrecur/ent/node_query.go +++ b/examples/o2mrecur/ent/node_query.go @@ -318,9 +318,9 @@ func (nq *NodeQuery) Select(field string, fields ...string) *NodeSelect { func (nq *NodeQuery) sqlAll(ctx context.Context) ([]*Node, error) { var ( - nodes []*Node - withFKs = nq.withFKs - _spec = nq.querySpec() + nodes []*Node = []*Node{} + withFKs = nq.withFKs + _spec = nq.querySpec() ) if nq.withParent != nil { withFKs = true diff --git a/examples/o2o2types/ent/card_query.go b/examples/o2o2types/ent/card_query.go index 27c9d11d8..a21d98e8b 100644 --- a/examples/o2o2types/ent/card_query.go +++ b/examples/o2o2types/ent/card_query.go @@ -294,9 +294,9 @@ func (cq *CardQuery) Select(field string, fields ...string) *CardSelect { func (cq *CardQuery) sqlAll(ctx context.Context) ([]*Card, error) { var ( - nodes []*Card - withFKs = cq.withFKs - _spec = cq.querySpec() + nodes []*Card = []*Card{} + withFKs = cq.withFKs + _spec = cq.querySpec() ) if cq.withOwner != nil { withFKs = true diff --git a/examples/o2o2types/ent/user_query.go b/examples/o2o2types/ent/user_query.go index 18a660118..cefd4dceb 100644 --- a/examples/o2o2types/ent/user_query.go +++ b/examples/o2o2types/ent/user_query.go @@ -294,8 +294,8 @@ func (uq *UserQuery) Select(field string, fields ...string) *UserSelect { func (uq *UserQuery) sqlAll(ctx context.Context) ([]*User, error) { var ( - nodes []*User - _spec = uq.querySpec() + nodes []*User = []*User{} + _spec = uq.querySpec() ) _spec.ScanValues = func() []interface{} { node := &User{config: uq.config} diff --git a/examples/o2obidi/ent/user_query.go b/examples/o2obidi/ent/user_query.go index bce2f3ac3..39b8918ef 100644 --- a/examples/o2obidi/ent/user_query.go +++ b/examples/o2obidi/ent/user_query.go @@ -293,9 +293,9 @@ func (uq *UserQuery) Select(field string, fields ...string) *UserSelect { func (uq *UserQuery) sqlAll(ctx context.Context) ([]*User, error) { var ( - nodes []*User - withFKs = uq.withFKs - _spec = uq.querySpec() + nodes []*User = []*User{} + withFKs = uq.withFKs + _spec = uq.querySpec() ) if uq.withSpouse != nil { withFKs = true diff --git a/examples/o2orecur/ent/node_query.go b/examples/o2orecur/ent/node_query.go index 5f46dcca2..bc540c90a 100644 --- a/examples/o2orecur/ent/node_query.go +++ b/examples/o2orecur/ent/node_query.go @@ -318,9 +318,9 @@ func (nq *NodeQuery) Select(field string, fields ...string) *NodeSelect { func (nq *NodeQuery) sqlAll(ctx context.Context) ([]*Node, error) { var ( - nodes []*Node - withFKs = nq.withFKs - _spec = nq.querySpec() + nodes []*Node = []*Node{} + withFKs = nq.withFKs + _spec = nq.querySpec() ) if nq.withPrev != nil { withFKs = true diff --git a/examples/start/ent/car_query.go b/examples/start/ent/car_query.go index 179cede99..f77768f58 100644 --- a/examples/start/ent/car_query.go +++ b/examples/start/ent/car_query.go @@ -294,9 +294,9 @@ func (cq *CarQuery) Select(field string, fields ...string) *CarSelect { func (cq *CarQuery) sqlAll(ctx context.Context) ([]*Car, error) { var ( - nodes []*Car - withFKs = cq.withFKs - _spec = cq.querySpec() + nodes []*Car = []*Car{} + withFKs = cq.withFKs + _spec = cq.querySpec() ) if cq.withOwner != nil { withFKs = true diff --git a/examples/start/ent/group_query.go b/examples/start/ent/group_query.go index ebd2acac1..b163ad993 100644 --- a/examples/start/ent/group_query.go +++ b/examples/start/ent/group_query.go @@ -294,8 +294,8 @@ func (gq *GroupQuery) Select(field string, fields ...string) *GroupSelect { func (gq *GroupQuery) sqlAll(ctx context.Context) ([]*Group, error) { var ( - nodes []*Group - _spec = gq.querySpec() + nodes []*Group = []*Group{} + _spec = gq.querySpec() ) _spec.ScanValues = func() []interface{} { node := &Group{config: gq.config} diff --git a/examples/start/ent/user_query.go b/examples/start/ent/user_query.go index b066e9686..06eb4e621 100644 --- a/examples/start/ent/user_query.go +++ b/examples/start/ent/user_query.go @@ -319,8 +319,8 @@ func (uq *UserQuery) Select(field string, fields ...string) *UserSelect { func (uq *UserQuery) sqlAll(ctx context.Context) ([]*User, error) { var ( - nodes []*User - _spec = uq.querySpec() + nodes []*User = []*User{} + _spec = uq.querySpec() ) _spec.ScanValues = func() []interface{} { node := &User{config: uq.config} diff --git a/examples/traversal/ent/group_query.go b/examples/traversal/ent/group_query.go index 23f9aa4d7..035e3a2f4 100644 --- a/examples/traversal/ent/group_query.go +++ b/examples/traversal/ent/group_query.go @@ -319,9 +319,9 @@ func (gq *GroupQuery) Select(field string, fields ...string) *GroupSelect { func (gq *GroupQuery) sqlAll(ctx context.Context) ([]*Group, error) { var ( - nodes []*Group - withFKs = gq.withFKs - _spec = gq.querySpec() + nodes []*Group = []*Group{} + withFKs = gq.withFKs + _spec = gq.querySpec() ) if gq.withAdmin != nil { withFKs = true diff --git a/examples/traversal/ent/pet_query.go b/examples/traversal/ent/pet_query.go index 459d64d3c..1f5bebfdb 100644 --- a/examples/traversal/ent/pet_query.go +++ b/examples/traversal/ent/pet_query.go @@ -319,9 +319,9 @@ func (pq *PetQuery) Select(field string, fields ...string) *PetSelect { func (pq *PetQuery) sqlAll(ctx context.Context) ([]*Pet, error) { var ( - nodes []*Pet - withFKs = pq.withFKs - _spec = pq.querySpec() + nodes []*Pet = []*Pet{} + withFKs = pq.withFKs + _spec = pq.querySpec() ) if pq.withOwner != nil { withFKs = true diff --git a/examples/traversal/ent/user_query.go b/examples/traversal/ent/user_query.go index ff24dd252..a02a52f70 100644 --- a/examples/traversal/ent/user_query.go +++ b/examples/traversal/ent/user_query.go @@ -367,8 +367,8 @@ func (uq *UserQuery) Select(field string, fields ...string) *UserSelect { func (uq *UserQuery) sqlAll(ctx context.Context) ([]*User, error) { var ( - nodes []*User - _spec = uq.querySpec() + nodes []*User = []*User{} + _spec = uq.querySpec() ) _spec.ScanValues = func() []interface{} { node := &User{config: uq.config}