mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-31 18:46:02 +00:00
PUT: actually propagate database error to client (fix: #127)
This commit is contained in:
parent
39001794a3
commit
88bf8fa704
@ -93,8 +93,10 @@ $qry->QDo( $sql, $params );
|
||||
|
||||
$qry->QDo("SELECT write_sync_change( $collection_id, $response_code, :dav_name)", array(':dav_name' => $dest->bound_from() ) );
|
||||
|
||||
$qry = new AwlQuery('COMMIT');
|
||||
if ( !$qry->Exec('move') ) rollback(500);
|
||||
if ( !$qry->Exec('COMMIT') ) {
|
||||
$qry->Rollback();
|
||||
$response_code = 500;
|
||||
}
|
||||
|
||||
// Uncache anything to do with the collection
|
||||
$cache = getCacheInstance();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user