File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 14
14
use Simples \Persistence \SQL \Operations \Update ;
15
15
use stdClass ;
16
16
use Throwable ;
17
- use function is_array ;
18
- use function runnable ;
19
17
20
18
/**
21
19
* Class SQLDriver
@@ -31,6 +29,7 @@ abstract class Driver extends Connection implements Persistence
31
29
/**
32
30
* SQLDriver constructor.
33
31
* @param array $settings
32
+ * @throws SimplesRunTimeError
34
33
*/
35
34
public function __construct (array $ settings )
36
35
{
@@ -108,9 +107,8 @@ public function read(array $clausules, array $values = []): array
108
107
if (!$ statement ) {
109
108
throw new SimplesPersistenceError ([$ sql , $ parameters ]);
110
109
}
111
- if (!$ statement ->execute ($ parameters )) {
112
- throw new SimplesPersistenceDataError ([$ statement ->errorInfo ()], [$ sql , $ parameters ]);
113
- }
110
+ $ statement ->execute ($ parameters );
111
+ // throw new SimplesPersistenceDataError([$statement->errorInfo()], [$sql, $parameters]);
114
112
115
113
// [PDO::FETCH_CLASS, 'person']
116
114
if (is_array ($ fetch )) {
You can’t perform that action at this time.
0 commit comments