X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FManual%2FCookbook.pod;h=0951c49e506e10d0be7718f64a4d56214b8ef4e4;hb=a8fcfb9f520ab32891d79d8e3ff2f48439537372;hp=8728eb562c74d01f8825c860a8f794a48d7c9613;hpb=39be4120d9aa8ae72ab5f2827cfa48fe28823b58;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Manual/Cookbook.pod b/lib/DBIx/Class/Manual/Cookbook.pod index 8728eb5..0951c49 100644 --- a/lib/DBIx/Class/Manual/Cookbook.pod +++ b/lib/DBIx/Class/Manual/Cookbook.pod @@ -141,6 +141,13 @@ L, ... on it). Note that you cannot have bind parameters unless is_virtual is set to true. +If you're using the old C<< $rsrc_instance->name(\'( SELECT ...') >> method for +custom SQL, you are highly encouraged to update your code to use a virtual view +as above. Otherwise add the following code so that on C<< ->deploy >> there is +no attempt to create a table with that name: + + sub sqlt_deploy_hook { $_[1]->schema->drop_table ($_[1]) } + =head2 Using specific columns When you only want specific columns from a table, you can use