Commit 1ea44f91 authored by Jeremy Mikola's avatar Jeremy Mikola

PHPLIB-164: Database::command() should use type map

This adds inheritance of the Database's type map option, which should have been added in 330e1e30.
parent af9bc65d
......@@ -144,6 +144,10 @@ class Database
$options['readPreference'] = $this->readPreference;
}
if ( ! isset($options['typeMap'])) {
$options['typeMap'] = $this->typeMap;
}
$operation = new DatabaseCommand($this->databaseName, $command, $options);
$server = $this->manager->selectServer($options['readPreference']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment