Hi Koz,
The date value coming in is from an html text field, the db column is
defined as a date. Here's a script/console session showing the behavior on
1.1.2:
I use attributes_with_quotes as that's how the value gets put into the sql
insert statement.
# script/console
Loading development envir
Is there a reason why AR doesn't pass the guess year flag to parsedate when
casting columns? Seems to me, in the context of a DB date field, you would
always want the 4 digit year.
Right now, if you shove a date like: 07/18/06 to Rails, MySQL will get
0006-07-16, but ParseDate.parsedate('07/1
Is there a reason why AR doesn’t pass the guess year
flag to parsedate when casting columns? Seems to me, in the context of a DB
date field, you would always want the 4 digit year.
Right now, if you shove a date like: 07/18/06 to
Rails, MySQL will get 0006-07-16, but ParseDate.parsedat
Hi
The Recently Revised list (http://wiki.rubyonrails.com/rails/recent)
often sticks for long periods, presumably due to a cached copy being
held for longer than it should be.
I first noticed this while RailsConf was on; I flagged it to Dan at the
time. It's been erratic since then. Just now
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Nicholas Seckar wrote:
>
> I think there are two separate cases: one where you want to insert a
> *lot* of records that you know to be valid, and another to insert a
> bunch of records that you do not trust to be valid.
I 100% agree with this state
This AR test is still broken, can somebody apply the patch below?
Michael Schoen wrote:
"marcel" made AR/Oracle cry...
http://dev.rubyonrails.org/changeset/4608
r4608 | marcel | 2006-07-12 20:23:39 -0700 (Wed, 12 Jul 2006)
I agree with you that there should be an option as to whether to insert
any if some fail. I was thinking of an instance where the user gets
500,000 rows of incomplete data and wants to put in anything that
conforms to validation. This was a scenario that I specifically
experienced. Sometimes
On 7/17/06, Michael Genereux <[EMAIL PROTECTED]> wrote:
I agree import is appropriate. However, the reason someone would wantthis in Rails is to integrate a CSV import through the web interface foran end user. Why would it skip validation though?
There are cases where skipping validation is desir