Martijn van Rheenen wrote: > As an extra hint: Can this be caused by a wrongly configured NLS_LANG > setting on my Windows client, causing ActiveRecord to get an > 'unexpected' > date format back?
Hi Martijn, I've the same problem storing in the Date column. I'm using this code( with a mix of italian and english words :D ) in the controller > writing = ValutazioneScorta.create(:Codice => code, :Scorta => > scorta,:Data => data ) if code != "" and data so it's really embarrassing to read: > DBI::DatabaseError: 23000 (515) [Microsoft][ODBC SQL Server Driver][SQL > Server]Impossibile inserire il valore Null nella colonna 'Data, tabella > 'giomai_db.dbo.ValutazioneScorta'. La colonna non supporta valori Null. > INSERT avrà esito negativo.: INSERT INTO [ValutazioneScorta] ([Scorta], > [Data], [CodiceMaietta]) VALUES (5, NULL, 'CNC-1320B008AA') showing "Null for Data( date ) columns" ( "Null nella colonna 'Data, ..." ) I'm sure that is a framework problem but I can't say where the value is lost. Error Stack is in attachment! Attachments: http://www.ruby-forum.com/attachment/4042/Full_Trace.txt -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" 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/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

