From: Dagfinn Ilmari Mannsåker Date: Mon, 12 Dec 2016 13:49:35 +0000 (+0000) Subject: Document column name/order requirements for views X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=da17aa3fce0140f68f4f83114e72cdbf8a3e52c4;p=dbsrgits%2FDBIx-Class.git Document column name/order requirements for views --- diff --git a/lib/DBIx/Class/ResultSource/View.pm b/lib/DBIx/Class/ResultSource/View.pm index 818295e..d880c27 100644 --- a/lib/DBIx/Class/ResultSource/View.pm +++ b/lib/DBIx/Class/ResultSource/View.pm @@ -50,6 +50,11 @@ A view has a L, which contains a SQL query. The query can only have parameters if L is set to true. It may contain JOINs, sub selects and any other SQL your database supports. +For virtual views the column names returned by the view definition SQL +must match the names in +L, while for +non-vritual views the order must match. + View definition SQL is deployed to your database on L unless you set L to true.