Skip to content

Commit 276661a

Browse files
committed
改进sqlsrv驱动
1 parent 813ffcf commit 276661a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Extend/Driver/Db/DbSqlsrv.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ public function update($data,$options) {
281281
.$this->parseWhere(!empty($options['where'])?$options['where']:'')
282282
.$this->parseLock(isset($options['lock'])?$options['lock']:false)
283283
.$this->parseComment(!empty($options['comment'])?$options['comment']:'');
284-
return $this->execute($sql);
284+
return $this->execute($sql,$this->parseBind(!empty($options['bind'])?$options['bind']:array()));
285285
}
286286

287287
/**
@@ -297,7 +297,7 @@ public function delete($options=array()) {
297297
.$this->parseWhere(!empty($options['where'])?$options['where']:'')
298298
.$this->parseLock(isset($options['lock'])?$options['lock']:false)
299299
.$this->parseComment(!empty($options['comment'])?$options['comment']:'');
300-
return $this->execute($sql);
300+
return $this->execute($sql,$this->parseBind(!empty($options['bind'])?$options['bind']:array()));
301301
}
302302

303303
/**

0 commit comments

Comments
 (0)