Skip to content

Instantly share code, notes, and snippets.

@mavroudis
Created May 7, 2012 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mavroudis/2627588 to your computer and use it in GitHub Desktop.
Save mavroudis/2627588 to your computer and use it in GitHub Desktop.
ezSQL: fixed duplicate return typo
commit d47a4e76e04e99fab6c6bca0076a083484f7a578
Author: Michael Mavroudis <michael@mavroudis.com>
Date: Sat Apr 28 09:54:46 2012 -0400
fixed duplicate return bug
diff --git a/postgresql/ez_sql_postgresql.php b/postgresql/ez_sql_postgresql.php
index 45e9518..bdeaa40 100755
--- a/postgresql/ez_sql_postgresql.php
+++ b/postgresql/ez_sql_postgresql.php
@@ -144,7 +144,7 @@
function descTable($tbl_name)
{
- return return "ordinal_position, column_name, data_type, column_default, is_nullable, character_maximum_length, numeric_precision FROM information_schema.columns WHERE table_name = '$tbl_name' AND table_schema='$this->dbname' ORDER BY ordinal_position";
+ return "ordinal_position, column_name, data_type, column_default, is_nullable, character_maximum_length, numeric_precision FROM information_schema.columns WHERE table_name = '$tbl_name' AND table_schema='$this->dbname' ORDER BY ordinal_position";
}
function showDatabases()
@@ -284,4 +284,4 @@
}
}
- }
\ No newline at end of file
+ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment