Permalink
Browse files

Change Schema query to look at the USER_TAB_COLUMNS and corrected inl…

…ine parameter.
  • Loading branch information...
1 parent 83cb229 commit 647a12632514e417d28cb84c9423f466ec809864 @jecoute jecoute committed Dec 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 Massive.Oracle.cs
View
@@ -185,7 +185,7 @@ public static DynamicModel Open(string connectionStringName)
public IEnumerable<dynamic> Schema {
get {
if (_schema == null)
- _schema = Query("SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = @0", TableName);
+ _schema = Query("SELECT * FROM USER_TAB_COLUMNS WHERE TABLE_NAME = :0", TableName);
return _schema;
}
}

0 comments on commit 647a126

Please sign in to comment.