table. Here is my script:
values = [id]
values.concat line.chomp.split("\t")
(10…12).each {|x| values[x] = Time.parse(values[x])
unless values[x].nil? || values[x].strip == “”}
sth.execute(values)
sth.execute(*values)
You need to flatten the list here. Otherwise, you’re just passing a
single array.
Regards,
Dan
This communication is the property of Qwest and may contain confidential
or
privileged information. Unauthorized use of this communication is
strictly
prohibited and may be unlawful. If you have received this communication
in error, please immediately notify the sender by reply e-mail and
destroy
all copies of the communication and any attachments.