Skip to content

Commit

Permalink
Fix typo on blog updates and altqq
Browse files Browse the repository at this point in the history
  • Loading branch information
baluyotraf committed Mar 22, 2024
1 parent 5cb567e commit 369ae40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/stories/posts/20240322-blog-updates-and-altqq/content.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Alternative Queries (altqq).
Alternative Queries also allows you to manage your query parameters. For
example, for ODBC databases, `pyodbc` does not allow named parameter. If means
that to reuse queries, one needs to make note of the parameters, as they must
be in order. For example
be in order. For example:

```python
query1 = """SELECT * from "Users" where "Id" = ?"""
Expand All @@ -44,7 +44,7 @@ full_query = f"{query1} UNION ALL {query2}"
parameters = [uuid4(), "Arie"]
```

The simple above looks simple, but if `query1` takes 3 parameters, and the
The code above looks simple, but if `query1` takes 3 parameters, and the
`full_query` reuses 3-5 existing queries, the scenario becomes more complex.
Even in this case, there is a possibility to define `parameters` as
`["Arie", uuid4()]` if one is not careful.
Expand Down

0 comments on commit 369ae40

Please sign in to comment.