[Jifty-commit] r1998 - Jifty-DBI/trunk/lib/Jifty/DBI

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Sun Oct 1 16:06:27 EDT 2006


Author: bartb
Date: Sun Oct  1 16:06:27 2006
New Revision: 1998

Modified:
   Jifty-DBI/trunk/lib/Jifty/DBI/Schema.pm

Log:
Small error string change to suggest looking for missing use lines in models where refer_to is used

Modified: Jifty-DBI/trunk/lib/Jifty/DBI/Schema.pm
==============================================================================
--- Jifty-DBI/trunk/lib/Jifty/DBI/Schema.pm	(original)
+++ Jifty-DBI/trunk/lib/Jifty/DBI/Schema.pm	Sun Oct  1 16:06:27 2006
@@ -199,6 +199,14 @@
 type passed to our database abstraction layer, which should resolve it
 to a database-specific type.  Correct usage is C<type is 'text'>.
 
+Currently type is passed directly to the database.  There is no
+intermediary mapping from abstract type names to database specific
+types.
+
+The impact of this is that not all column types are portable between
+databases.  For example blobs have different names between
+mysql and postgres.
+
 =cut
 
 sub type {
@@ -520,7 +528,7 @@
 
 sub _list {
     defined wantarray
-        or croak("Cannot add traits in void context -- check for misspelled preceding comma as a semicolon");
+        or croak("Cannot add traits in void context -- check for misspelled preceding comma as a semicolon or missing use statements for models you refer_to.");
 
     wantarray
         or croak("Cannot call list traits in scalar context -- check for unneccessary 'is'");


More information about the Jifty-commit mailing list