Zainab-Saad commented on PR #905:
URL: https://github.com/apache/age/pull/905#issuecomment-1540355562

   @jrgemignani Yes, I understand that. Moreover, I have written a few more 
regression tests and commenting them here so that I can make a commit to add 
only relevant regression tests:
   1. `SELECT * FROM cypher('test', $$
   RETURN ""     
   $$) AS (result int);
   ERROR:  invalid input syntax for integer: ""`
   
   2. `SELECT * FROM cypher('test', $$
   RETURN "falze"
   $$) AS (result int);
   ERROR:  invalid input syntax for integer: "falze"`
   
   3. `SELECT * FROM cypher('test', $$
   RETURN tRuE   
   $$) AS (result int);`
   
    result 
   - - - - - - 
         1
   (1 row)
   
   4. `SELECT * FROM cypher('test', $$
   RETURN ""         
   $$) AS (result bool);
   ERROR:  cannot cast agtype string to type boolean`
   
   5. `SELECT * FROM cypher('test', $$
   RETURN "falze"
   $$) AS (result bool);
   ERROR:  cannot cast agtype string to type boolean`
   
   These are the tests for *type coercion*


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to