Fix example SQL for View
Justin Hunter [Tue, 29 Jun 2010 20:29:33 +0000 (15:29 -0500)]
lib/DBIx/Class/ResultSource/View.pm

index 3dde9bd..f9acd69 100644 (file)
@@ -77,7 +77,7 @@ above, you can then:
 If you modified the schema to include a placeholder
 
   __PACKAGE__->result_source_instance->view_definition(
-      "SELECT cdid, artist, title FROM cd WHERE year ='?'"
+      "SELECT cdid, artist, title FROM cd WHERE year = ?"
   );
 
 and ensuring you have is_virtual set to true: