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.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.048 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.