-
| I'm seeing that asyncpg doesn't always infer the type of a parameter, even when it's unambigous. Example: Output: A boolean  Questions: 
 asyncpg: 0.26 | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            elprans
          
      
      
        Oct 11, 2022 
      
    
    Replies: 1 comment 1 reply
-
| This is expected behavior (of Postgres): untyped arguments are assumed to be strings ("unknown" to be exact, which is the same). The correct approach is to always indicate the argument type via a cast. | 
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
      Answer selected by
        pbryan
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
This is expected behavior (of Postgres): untyped arguments are assumed to be strings ("unknown" to be exact, which is the same). The correct approach is to always indicate the argument type via a cast.