On Jul 19, 2006, at 17:39, Tom W. wrote:
should work, particularly regarding your first point. It’s pretty
clear to me that the second issue, writing DateTime attributes, should
just work. If it doesn’t, it needs fixing.
I found an issue last week. Using Date attributes back and forth
worked flawlessly in SQL Server until a one in Spanish entered the
project. The convertion fails with an out of range, but in the
googling I’ve done looks like the ISO format the adapter uses is not
language dependent, so I can’t understand what happens. The trace
goes below just in case it helps.
– fxn
DBI::DatabaseError: 22008 (242) [Microsoft][ODBC
SQL Server Driver][SQL Server]La conversi¾n del tipo de datos char a
datetime p
odujo un valor datetime fuera de intervalo.: INSERT INTO movimientos
([carpeta]
[otras_caracteristicas], [fecha_valor], [importe_operacion],
[fecha_operacion]
[oficina], [referencia_1], [remite], [referencia_2], [divisa],
[concepto], [cr
ado_en], [cuenta], [concepto_especifico], [entidad], [saldo],
[estado]) VALUES(
53386185’, ‘C00607-060714-105544-0095’, ‘2006-07-14’, 235500,
‘2006-07-14’, ‘23
5 - POZUELO DE ALARCON - ESTACION - AV. JUAN PABLO II, 5 ‘, ‘’,
‘REMPO’, ‘’, ‘E
R’, ‘INGRESO POR VALIDAR’, ‘2006-07-14 11:07:15’,
‘21002128420200179838’, ‘’, ’
aCaixa’, 4110278, ‘N’) (ActiveRecord::StatementInvalid)
from ./script/…/config/…/vendor/rails/activerecord/lib/
active_record/
onnection_adapters/sqlserver_adapter.rb:279:in insert' from ./script/../config/../vendor/rails/activerecord/lib/ active_record/ ase.rb:1739:in
create_without_callbacks’
from ./script/…/config/…/vendor/rails/activerecord/lib/
active_record/
allbacks.rb:261:in create_without_timestamps' from ./script/../config/../vendor/rails/activerecord/lib/ active_record/ imestamp.rb:30:in
create’
from ./script/…/config/…/vendor/rails/activerecord/lib/
active_record/
ase.rb:1718:in create_or_update_without_callbacks' from ./script/../config/../vendor/rails/activerecord/lib/ active_record/ allbacks.rb:249:in
create_or_update’
from ./script/…/config/…/vendor/rails/activerecord/lib/
active_record/
ase.rb:1392:in save_without_validation' from ./script/../config/../vendor/rails/activerecord/lib/ active_record/ alidations.rb:724:in
save_without_transactions’
… 10 levels…
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:21:in e al' from ./script/../config/../vendor/rails/railties/lib/ commands/runner.rb 27 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:21:in
r
quire’
from script/runner:3