Skip to content

Commit

Permalink
Fixing include path in examples. Added example with comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdorn committed May 9, 2012
1 parent cd5e0db commit 4c6d7f1
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions examples/examples.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
require_once('SqlFormatter.php');
require_once('../SqlFormatter.php');

$statements = array(
"SELECT * FROM MyTable WHERE id = 46",
Expand All @@ -17,7 +17,14 @@

"delete from MyTable WHERE name LIKE \"test%\"",

"SELECT * FROM UnmatchedParens WHERE ( A = B)) AND (((Test=1)"
"SELECT * FROM UnmatchedParens WHERE ( A = B)) AND (((Test=1)",

"-- This is a comment
SELECT
/* This is another comment
On more than one line */
Id #This is one final comment
as temp, DateCreated as Created FROM MyTable;",
);

foreach($statements as $sql) {
Expand Down

0 comments on commit 4c6d7f1

Please sign in to comment.