@@ -86,9 +86,12 @@ |
||
86 | 86 | throw new \Aimeos\MW\DB\Exception( sprintf( $msg, count( $this->binds ), implode( '?', $this->parts ) ) ); |
87 | 87 | } |
88 | 88 | |
89 | - try { |
|
89 | + try |
|
90 | + { |
|
90 | 91 | $result = $this->exec(); |
91 | - } catch( \PDOException $e ) { |
|
92 | + } |
|
93 | + catch( \PDOException $e ) |
|
94 | + { |
|
92 | 95 | throw new \Aimeos\MW\DB\Exception( $e->getMessage() . ': ' . $this->sql, $e->getCode() ); |
93 | 96 | } |
94 | 97 |
@@ -59,9 +59,12 @@ |
||
59 | 59 | */ |
60 | 60 | public function execute() |
61 | 61 | { |
62 | - try { |
|
62 | + try |
|
63 | + { |
|
63 | 64 | $stmt = $this->exec(); |
64 | - } catch( \PDOException $e ) { |
|
65 | + } |
|
66 | + catch( \PDOException $e ) |
|
67 | + { |
|
65 | 68 | throw new \Aimeos\MW\DB\Exception( $e->getMessage() . ': ' . $this->sql, $e->getCode(), $e->errorInfo ); |
66 | 69 | } |
67 | 70 |
@@ -58,9 +58,12 @@ |
||
58 | 58 | */ |
59 | 59 | public function execute() |
60 | 60 | { |
61 | - try { |
|
61 | + try |
|
62 | + { |
|
62 | 63 | $stmt = $this->exec(); |
63 | - } catch( \PDOException $e ) { |
|
64 | + } |
|
65 | + catch( \PDOException $e ) |
|
66 | + { |
|
64 | 67 | throw new \Aimeos\MW\DB\Exception( $e->getMessage() . ': ' . $this->sql, $e->getCode() ); |
65 | 68 | } |
66 | 69 |
@@ -86,9 +86,12 @@ |
||
86 | 86 | throw new \Aimeos\MW\DB\Exception( sprintf( $msg, count( $this->binds ), implode( '?', $this->parts ) ) ); |
87 | 87 | } |
88 | 88 | |
89 | - try { |
|
89 | + try |
|
90 | + { |
|
90 | 91 | $result = $this->exec(); |
91 | - } catch( \PDOException $e ) { |
|
92 | + } |
|
93 | + catch( \PDOException $e ) |
|
94 | + { |
|
92 | 95 | throw new \Aimeos\MW\DB\Exception( $e->getMessage() . ': ' . $this->sql, $e->getCode() ); |
93 | 96 | } |
94 | 97 |
@@ -69,8 +69,7 @@ |
||
69 | 69 | $dbm->release( $conn, $rname ); |
70 | 70 | |
71 | 71 | $this->status( 'done' ); |
72 | - } |
|
73 | - else |
|
72 | + } else |
|
74 | 73 | { |
75 | 74 | $this->status( 'OK' ); |
76 | 75 | } |
@@ -80,8 +80,7 @@ |
||
80 | 80 | $dbm->release( $conn, $rname ); |
81 | 81 | |
82 | 82 | $this->status( 'done' ); |
83 | - } |
|
84 | - else |
|
83 | + } else |
|
85 | 84 | { |
86 | 85 | $this->status( 'OK' ); |
87 | 86 | } |
@@ -264,8 +264,7 @@ |
||
264 | 264 | */ |
265 | 265 | $path = 'mshop/text/manager/standard/insert'; |
266 | 266 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
267 | - } |
|
268 | - else |
|
267 | + } else |
|
269 | 268 | { |
270 | 269 | /** mshop/text/manager/standard/update/mysql |
271 | 270 | * Updates an existing text record in the database |
@@ -517,8 +517,7 @@ |
||
517 | 517 | */ |
518 | 518 | $path = 'mshop/customer/manager/standard/insert'; |
519 | 519 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
520 | - } |
|
521 | - else |
|
520 | + } else |
|
522 | 521 | { |
523 | 522 | /** mshop/customer/manager/standard/update/mysql |
524 | 523 | * Updates an existing customer record in the database |
@@ -306,8 +306,7 @@ |
||
306 | 306 | */ |
307 | 307 | $path = 'mshop/customer/manager/group/standard/insert'; |
308 | 308 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
309 | - } |
|
310 | - else |
|
309 | + } else |
|
311 | 310 | { |
312 | 311 | /** mshop/customer/manager/group/standard/update/mysql |
313 | 312 | * Updates an existing customer group record in the database |