Browse files

Merge branch 'w12_MDL-26842_20_ociparams' of git://github.com/skodak/…

…moodle
  • Loading branch information...
2 parents 1997d9d + cd278cd commit 1f95c9a4afdb1c6ccbd41b6cc6821b92b59ceb16 @stronk7 stronk7 committed Mar 21, 2011
Showing with 6 additions and 0 deletions.
  1. +3 −0 lib/dml/mssql_native_moodle_database.php
  2. +3 −0 lib/dml/sqlsrv_native_moodle_database.php
View
3 lib/dml/mssql_native_moodle_database.php
@@ -1002,6 +1002,9 @@ public function set_field_select($table, $newfield, $newvalue, $select, array $p
$params = array();
}
+ // convert params to ? types
+ list($select, $params, $type) = $this->fix_sql_params($select, $params);
+
/// Get column metadata
$columns = $this->get_columns($table);
$column = $columns[$newfield];
View
3 lib/dml/sqlsrv_native_moodle_database.php
@@ -1073,6 +1073,9 @@ public function set_field_select($table, $newfield, $newvalue, $select, array $p
$params = array ();
}
+ // convert params to ? types
+ list($select, $params, $type) = $this->fix_sql_params($select, $params);
+
/// Get column metadata
$columns = $this->get_columns($table);
$column = $columns[$newfield];

0 comments on commit 1f95c9a

Please sign in to comment.