Transformation for SQL pretty printing (RFE #1327648).
This commit is contained in:
12
libraries/transformations/text_plain__sql.inc.php
Normal file
12
libraries/transformations/text_plain__sql.inc.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
// vim: expandtab sw=4 ts=4 sts=4:
|
||||
|
||||
function PMA_transformation_text_plain__sql($buffer, $options = array(), $meta = '') {
|
||||
$result = PMA_SQP_formatHtml(PMA_SQP_parse($buffer));
|
||||
// Need to clear error state not to break subsequent queries display.
|
||||
PMA_SQP_resetError();
|
||||
return $result;
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user