On Wed, Nov 17, 2010 at 7:27 PM, gabrielr <[email protected]> wrote: > I Found that the PostgreSQL pg_field_name() function truncate the > field Name, because cake add alias to that field. I Don't know if the > answer is naming my model's class with a short name. > > Somebody can help me with this problem? > > Please !!!!
Column names that long seem like a sign of poor database design. ALTER TABLE ... RENAME COLUMN ... I know, I know, you said you can't change it.Your other option is to boost NAMEDATALEN in src/include/postgres_ext.h, dump your database(s), re-compile, and re-load. Note, though, that increasing NAMEDATALEN incurs a heavy performance hit. See here before doing that: http://www.mail-archive.com/[email protected]/msg16216.html Starting to look like changing the column names is a better bet, eh? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
