Showing
1 changed file
with
9 additions
and
0 deletions
@@ -65,6 +65,15 @@ class Result | @@ -65,6 +65,15 @@ class Result | ||
65 | } | 65 | } |
66 | 66 | ||
67 | /** | 67 | /** |
68 | + * 状态 | ||
69 | + * @return bool | ||
70 | + */ | ||
71 | + public function status() | ||
72 | + { | ||
73 | + return $this->_PDOStatement->errorCode() === '00000'; | ||
74 | + } | ||
75 | + | ||
76 | + /** | ||
68 | * 获取statement Error Code | 77 | * 获取statement Error Code |
69 | * @return string | 78 | * @return string |
70 | */ | 79 | */ |
-
Please register or login to post a comment