1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-13 10:04:07 +02:00

PostgreSQL bool in Editor

This commit is contained in:
Jakub Vrana
2011-03-24 11:37:05 +01:00
parent ebc0c52f5f
commit 2dbc73833b
3 changed files with 13 additions and 6 deletions

View File

@@ -43,3 +43,11 @@ function send_mail($email, $subject, $message, $from = "", $files = array("error
;
return mail($email, email_header($subject), $beginning . $message . $attachments, $headers);
}
/** Check whether the column looks like boolean
* @param array single field returned from fields()
* @return bool
*/
function like_bool($field) {
return ereg("bool|(tinyint|bit)\\(1\\)", $field["full_type"]);
}