aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sql_algebra/relations
diff options
context:
space:
mode:
authorNick Kallen <nkallen@nick-kallens-computer-2.local>2007-12-30 17:35:23 -0800
committerNick Kallen <nkallen@nick-kallens-computer-2.local>2007-12-30 17:35:23 -0800
commit1a59c8cbc90d37fa571c12049d0e43aa44d46388 (patch)
tree021bcf5e92274cfcbbd43541b1ab4e57a6a8275e /lib/sql_algebra/relations
parent63b9c6a41f7ab92a16362a50b60bcea7e20cb427 (diff)
downloadrails-1a59c8cbc90d37fa571c12049d0e43aa44d46388.tar.gz
rails-1a59c8cbc90d37fa571c12049d0e43aa44d46388.tar.bz2
rails-1a59c8cbc90d37fa571c12049d0e43aa44d46388.zip
sql builder
Diffstat (limited to 'lib/sql_algebra/relations')
-rw-r--r--lib/sql_algebra/relations/table_relation.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/sql_algebra/relations/table_relation.rb b/lib/sql_algebra/relations/table_relation.rb
index dd4987c3e1..17cdbab61a 100644
--- a/lib/sql_algebra/relations/table_relation.rb
+++ b/lib/sql_algebra/relations/table_relation.rb
@@ -6,6 +6,9 @@ class TableRelation < Relation
end
def to_sql
- Select.new(:*).from(table)
+ SelectBuilder.new do
+ select :*
+ from table
+ end
end
end \ No newline at end of file