Bug #87546 Missing the Error return type for sql.execute()
Submitted: 25 Aug 2017 12:34 Modified: 28 Aug 2017 6:11
Reporter: Shahriyar Rzayev Email Updates:
Status: Verified Impact on me:
None 
Category:Connector / Python Documentation Severity:S3 (Non-critical)
Version:8.0.4 OS:Any
Assigned to: CPU Architecture:Any

[25 Aug 2017 12:34] Shahriyar Rzayev
Description:
Session class:

https://dev.mysql.com/doc/dev/connector-python/mysqlx.Session.html

has sql() method which creates SqlStatemen object

https://dev.mysql.com/doc/dev/connector-python/mysqlx.SqlStatement.html#mysqlx.SqlStatemen...

Which has execute() method.

The doc states:

 execute()

    Execute the statement.
    Returns:	SqlResult object.
    Return type:	mysqlx.SqlResult

But how about if sql statement fails? So there should be some Error return type with clear explanation.

How to repeat:
See description
[28 Aug 2017 6:11] Chiranjeevi Battula
Hello Shahriyar,

Thank you for the report and feedback.

Thanks,
Chiranjeevi.