Aaron Patterson
f468d6e94f
Merge pull request #5096 from lawso017/master
...
Restoring ability to derive id/sequence from tables with nonstandard sequences for primary keys
Conflicts:
activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
activerecord/test/cases/adapters/postgresql/schema_test.rb
2012-02-21 09:51:47 -08:00
Jon Leighton
c1e2c1a7dc
Avoid postgres 9.X syntax
2011-12-03 20:12:57 +00:00
Juan M. Cuello
b02daec718
Backport #3232 to 3-1-stable.
...
Use the schema_search_path in prepared statements in postgres.
Only the tests are backported, the fix was already included by
commit 818d285305 .
2011-11-15 10:20:32 -03:00
Sean Kirby
58f2fbc2ad
fixes bug with PostgreSQLAdapter#indexes
...
When the search path has multiple schemas, spaces were not being stripped
from the schema names after the first.
2011-11-04 12:33:25 -04:00
Aaron Patterson
88ac481b46
Merge pull request #3258 from ileitch/3-1-stable
...
Postgres: Do not attempt to deallocate a statement if the connection is no longer active.
2011-10-20 08:44:55 -07:00
Aaron Patterson
818d285305
reset prepared statement when schema changes imapact statement results. fixes #3335
2011-10-18 11:19:42 -07:00
Ian Leitch
fc55fa7a14
Postgres: Do not attempt to deallocate a statement if the connection is no longer active.
2011-10-08 18:06:18 +01:00
Aaron Patterson
24b3783da1
fixing file name
2011-09-07 15:28:10 -07:00
Aaron Patterson
77e0bdda17
LRU should cache per process in postgresql. fixes #1339
2011-09-07 15:28:05 -07:00
Kym
6a14b01802
Postgresql adapter: added current_schema check for table_exists?
2011-09-07 17:02:34 +10:00
Aaron Patterson
6f917adf35
forgot to add this test case
2011-07-22 09:15:19 -07:00
Aaron Patterson
e504101b36
please use ruby -I lib:test path/to/test.rb, or export RUBY_OPT
2011-06-06 15:46:50 -07:00
Jon Leighton
f9e3d4bc59
Refactor Active Record test connection setup. Please see the RUNNING_UNIT_TESTS file for details, but essentially you can now configure things in test/config.yml. You can also run tests directly via the command line, e.g. ruby path/to/test.rb (no rake needed, uses default db connection from test/config.yml). This will help us fix the CI by enabling us to isolate the different Rails versions to different databases.
2011-06-04 23:25:36 +01:00
Benjamin Fritsch
714b4a82f4
Added tsvector Datatype Support
...
Applied Patch from https://rails.lighthouseapp.com/projects/8994/tickets/5577-suport-from-tsvector-data-type-in-postgresql
2011-04-26 09:47:40 +02:00
Aaron Patterson
a22ceaeefa
mysql type cast should return integers when typecasting true / false
2011-04-14 13:37:39 -07:00
Aaron Patterson
eebb19c954
use index based substitution for bind parameters
2011-04-13 09:42:51 -07:00
Aaron Patterson
622f23b604
wrap the pg_get_serial_sequence function and reuse it for the default sequence name
2011-04-11 14:38:42 -07:00
Aaron Patterson
58259bbf29
adding exec_insert for postgresql
2011-04-11 10:10:01 -07:00
Aaron Patterson
0f45f23669
renaming exec in the PG adapter
2010-11-05 10:15:33 -07:00
Aaron Patterson
02128d628c
setting the authorized session clears the statement cache
2010-10-26 13:44:11 -07:00
Aaron Patterson
9d9aed433b
add a session authorization setter to the pg connection
2010-10-26 13:44:11 -07:00
Aaron Patterson
1741bbe2d5
avoiding statement cache if there are no bind values
2010-10-26 13:44:10 -07:00
Aaron Patterson
43bbb25ddd
bind substitution is working properly
2010-10-26 13:44:10 -07:00
Aaron Patterson
9d46e0d012
bind parameters are now typecast
2010-10-26 13:44:10 -07:00
Aaron Patterson
e2813479f9
basic bind parameters are working
2010-10-26 13:44:09 -07:00
Aaron Patterson
ffb999125a
initial exec() method is working in pg adapter
2010-10-26 13:44:09 -07:00
Aaron Patterson
1db8ed0f4b
activerecord tests should inherit from ActiveRecord::TestCase
2010-07-14 16:35:52 -07:00
Aaron Patterson
36150c902b
Let's initialize instance variables in the postgres adapter.
2010-07-14 15:04:14 -07:00
Aaron Patterson
4464d10e68
index dump should not include full text indexes. Thanks Ken Mayer for the original patch! [ #4949 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-26 00:59:38 +02:00
Aaron Patterson
5e2b473b47
reorganizing adapter specific tests. [ #4974 state:resolved]
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-06-25 14:47:14 -07:00