fix: close mysql statement and rows resources when sql exec end (#1720)
fix: close mysql statement and rows resources when sql exec end (#1720)

* fix: close mysql statement and rows resources when sql exec end

* fix: close mysql statement and rows resources when sql exec end

* style: move code to other place

* style: correct the typo(Prepare)

Co-authored-by: 陈文军 <b0d594c5df830b0504ed4b8c9a112493a2a06af6@corp.netease.com>
kubeflow/katib,kubeflow/katib,kubeflow/katib,kubeflow/katib,kubeflow/katib,kubeflow/katib