Skip to content

Commit

Permalink
fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-rychlewski committed Feb 4, 2024
1 parent 2d8a7f9 commit fe273a6
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions lib/ecto/query.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1995,7 +1995,7 @@ defmodule Ecto.Query do
The columns of each of the queries in the combination must be specified in
the exact same order. Otherwise, you may see the values of one column appearing
in another. This holds for all types of select statements, including maps.
in another. This holds for all types of select expressions, including maps.
For example, the following query will interchange the values of the supplier's
name and city because that is the order the fields are specified in the customer
Expand Down Expand Up @@ -2064,15 +2064,15 @@ defmodule Ecto.Query do
The columns of each of the queries in the combination must be specified in
the exact same order. Otherwise, you may see the values of one column appearing
in another. This holds for all types of select statements, including maps.
in another. This holds for all types of select expressions, including maps.
For example, the following query will interchange the values of the supplier's
name and city because that is the order the fields are specified in the customer
query.
supplier_query = from s in Supplier, select: %{city: s.city, name: s.name}
customer_query = from c in Customer, select: %{name: c.name, city: c.city}
union(supplier_query, ^customer_query)
union_all(supplier_query, ^customer_query)
### Selecting literal atoms
Expand Down Expand Up @@ -2138,15 +2138,15 @@ defmodule Ecto.Query do
The columns of each of the queries in the combination must be specified in
the exact same order. Otherwise, you may see the values of one column appearing
in another. This holds for all types of select statements, including maps.
in another. This holds for all types of select expressions, including maps.
For example, the following query will interchange the values of the supplier's
name and city because that is the order the fields are specified in the customer
query.
supplier_query = from s in Supplier, select: %{city: s.city, name: s.name}
customer_query = from c in Customer, select: %{name: c.name, city: c.city}
union(supplier_query, ^customer_query)
except(supplier_query, ^customer_query)
### Selecting literal atoms
Expand Down Expand Up @@ -2207,15 +2207,15 @@ defmodule Ecto.Query do
The columns of each of the queries in the combination must be specified in
the exact same order. Otherwise, you may see the values of one column appearing
in another. This holds for all types of select statements, including maps.
in another. This holds for all types of select expressions, including maps.
For example, the following query will interchange the values of the supplier's
name and city because that is the order the fields are specified in the customer
query.
supplier_query = from s in Supplier, select: %{city: s.city, name: s.name}
customer_query = from c in Customer, select: %{name: c.name, city: c.city}
union(supplier_query, ^customer_query)
except_all(supplier_query, ^customer_query)
### Selecting literal atoms
Expand Down Expand Up @@ -2281,15 +2281,15 @@ defmodule Ecto.Query do
The columns of each of the queries in the combination must be specified in
the exact same order. Otherwise, you may see the values of one column appearing
in another. This holds for all types of select statements, including maps.
in another. This holds for all types of select expressions, including maps.
For example, the following query will interchange the values of the supplier's
name and city because that is the order the fields are specified in the customer
query.
supplier_query = from s in Supplier, select: %{city: s.city, name: s.name}
customer_query = from c in Customer, select: %{name: c.name, city: c.city}
union(supplier_query, ^customer_query)
intersect(supplier_query, ^customer_query)
### Selecting literal atoms
Expand Down Expand Up @@ -2350,15 +2350,15 @@ defmodule Ecto.Query do
The columns of each of the queries in the combination must be specified in
the exact same order. Otherwise, you may see the values of one column appearing
in another. This holds for all types of select statements, including maps.
in another. This holds for all types of select expressions, including maps.
For example, the following query will interchange the values of the supplier's
name and city because that is the order the fields are specified in the customer
query.
supplier_query = from s in Supplier, select: %{city: s.city, name: s.name}
customer_query = from c in Customer, select: %{name: c.name, city: c.city}
union(supplier_query, ^customer_query)
intersect_all(supplier_query, ^customer_query)
### Selecting literal atoms
Expand Down

0 comments on commit fe273a6

Please sign in to comment.