@@ -38,7 +38,7 @@ public function create(GSShare $gsShare): void {
3838 ->setValue ('parent ' , $ qb ->createNamedParameter ($ gsShare ->getParent ()))
3939 ->setValue ('mountpoint ' , $ qb ->createNamedParameter ($ gsShare ->getMountPoint ()))
4040 ->setValue ('mountpoint_hash ' , $ qb ->createNamedParameter ($ hash ));
41- $ qb ->execute ();
41+ $ qb ->executeStatement ();
4242 }
4343
4444
@@ -54,7 +54,7 @@ public function getForUser(string $userId): array {
5454 $ this ->leftJoinMountPoint ($ qb , $ userId );
5555
5656 $ shares = [];
57- $ cursor = $ qb ->execute ();
57+ $ cursor = $ qb ->executeQuery ();
5858 while ($ data = $ cursor ->fetch ()) {
5959 $ shares [] = $ this ->parseGSSharesSelectSql ($ data );
6060 }
@@ -73,7 +73,7 @@ public function removeGSSharesFromMember(DeprecatedMember $member) {
7373 $ this ->limitToInstance ($ qb , $ member ->getInstance ());
7474 $ this ->limitToOwner ($ qb , $ member ->getUserId ());
7575
76- $ qb ->execute ();
76+ $ qb ->executeStatement ();
7777 }
7878
7979
@@ -126,7 +126,7 @@ public function getShareMountPointByPath(string $userId, string $target): GSShar
126126 $ this ->limitToMountpointHash ($ qb , $ targetHash );
127127
128128 $ shares = [];
129- $ cursor = $ qb ->execute ();
129+ $ cursor = $ qb ->executeQuery ();
130130 $ data = $ cursor ->fetch ();
131131
132132 if ($ data === false ) {
@@ -151,7 +151,7 @@ public function getShareMountPointById(int $gsShareId, string $userId): GSShareM
151151 $ this ->limitToUserId ($ qb , $ userId );
152152
153153 $ shares = [];
154- $ cursor = $ qb ->execute ();
154+ $ cursor = $ qb ->executeQuery ();
155155 $ data = $ cursor ->fetch ();
156156 if ($ data === false ) {
157157 throw new ShareNotFound ();
@@ -173,7 +173,7 @@ public function generateShareMountPoint(GSShareMountpoint $mountpoint) {
173173 ->setValue ('share_id ' , $ qb ->createNamedParameter ($ mountpoint ->getShareId ()))
174174 ->setValue ('mountpoint ' , $ qb ->createNamedParameter ($ mountpoint ->getMountPoint ()))
175175 ->setValue ('mountpoint_hash ' , $ qb ->createNamedParameter ($ hash ));
176- $ qb ->execute ();
176+ $ qb ->executeStatement ();
177177 }
178178
179179
@@ -192,7 +192,7 @@ public function updateShareMountPoint(GSShareMountpoint $mountpoint) {
192192
193193 $ this ->limitToShareId ($ qb , $ mountpoint ->getShareId ());
194194 $ this ->limitToUserId ($ qb , $ mountpoint ->getUserId ());
195- $ nb = $ qb ->execute ();
195+ $ nb = $ qb ->executeStatement ();
196196
197197 return ($ nb === 1 );
198198 }
0 commit comments