From: "Dickson S. Guedes" Date: 2013-04-11T22:15:06+09:00 Subject: Re: ActiveRecord for PostgreSQL --=-WVQoeQp+09nzvoD4EXlU Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Em Qui, 2013-04-11 =C3=A0s 04:08 +0900, Biju jaaaa escreveu: > By default ActiveRecord always quote table name for the generated SQL. > For example set_table_name 'CUSTOMER_ACCOUNT' > Then it generate sql like , SELECT * FROM "CUSTOMER_ACCOUNT" > This is an issue for the PostgreSQL database which gives table doesn't > exist error. > How could generate a sql using ActiveRecord without quotes? Isn't that an issue about UPER_CASE_NAME? What if you do: set_table_name 'customer_account' ? Btw, this is more related to Rails guys than to Ruby ones. --=20 Dickson S. Guedes mail/xmpp: guedes@guedesoft.net - skype: guediz http://guedesoft.net - http://www.postgresql.org.br http://www.rnp.br/keyserver/pks/lookup?search=3D0x8F3E3C06D428D10A --=-WVQoeQp+09nzvoD4EXlU Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAABAgAGBQJRZqijAAoJEBa5zL7BI5C7RSYH/A5y1WcWBjwoaakrDgtVJCNx rNF2OgZCR0d3aEbSgU3V5a4Ykd6ABS73CGaCaFY02rodblwXJACivVpWt0AchJY1 3bdzhJ35jCk34AheUFNASRxV4niRg5D9Yoz3h1f6JqnS+yq1YkA4vdp3h55fl9+3 vwUxLlVBA6d00eWrnhSsZ7lfcsd04pID52XhtI+51GWyWNsDcLij9EihjSyS+gbf 46x3QDU80NcHhkG+T9105youyVE7N9zL9CWGF66lAuRRnab0fvwtGol0nHYbRQY1 aVKAZj7rzed40kPn0KsM6QhP0CYA2n9sztE42+zqIr3mqlTM8GfCXjnDD8HY+Wc= =kHNf -----END PGP SIGNATURE----- --=-WVQoeQp+09nzvoD4EXlU--