Skip to content

Instantly share code, notes, and snippets.

@gajus
Created March 12, 2013 23:08
Show Gist options
  • Save gajus/5147932 to your computer and use it in GitHub Desktop.
Save gajus/5147932 to your computer and use it in GitHub Desktop.
Type: PDOException
Message: SQLSTATE[HY000]: General error: Extraneous additional parameters
File: [project]/ay/pdo.class.php
Line: 85
Time: Mar 12, 2013 23:07
public function fetchAll ($how = null, $class_name = null, $ctor_args = null) {
if ($how === PDO::FETCH_KEY_ASSOC) {
#$result = parent::fetchAll(PDO::FETCH_ASSOC);
#return array_combine(array_map('array_shift', $result), $result);
} else {
return parent::fetchAll($how, $class_name, $ctor_args);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment