Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Invalid Syntax in Documentation #402

Merged
merged 1 commit into from
May 10, 2022

Conversation

thiagopromano
Copy link
Contributor

The current example gives the following error:

** (FunctionClauseError) no function clause matching in Postgrex.DefaultTypes.encode_params/3    
    
    The following arguments were given to Postgrex.DefaultTypes.encode_params/3:
    
        # 1
        "SET lock_timeout TO '10s'"
    
        # 2
        []
    
        # 3
        []
    
    Attempted function clauses (showing 3 out of 3):
    
        defp encode_params([param | params], [type | types], encoded)
        defp encode_params([], [], encoded)
        defp encode_params(params, _, _) when is_list(params)

The current example gives the following error:

```
** (FunctionClauseError) no function clause matching in Postgrex.DefaultTypes.encode_params/3    
    
    The following arguments were given to Postgrex.DefaultTypes.encode_params/3:
    
        # 1
        "SET lock_timeout TO '10s'"
    
        # 2
        []
    
        # 3
        []
    
    Attempted function clauses (showing 3 out of 3):
    
        defp encode_params([param | params], [type | types], encoded)
        defp encode_params([], [], encoded)
        defp encode_params(params, _, _) when is_list(params)
```
@josevalim josevalim merged commit 9150163 into elixir-ecto:master May 10, 2022
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants