Skip to content

Instantly share code, notes, and snippets.

@mikebaldry
Created October 31, 2011 15:09
Show Gist options
  • Save mikebaldry/1327695 to your computer and use it in GitHub Desktop.
Save mikebaldry/1327695 to your computer and use it in GitHub Desktop.
MySQl/Sequel issue
(rdb:3) p x = ContractStatusChange.new(:changed_status => "", :date_changed => DateTime.now, :contract_id => "77b3271e-1563-4cd4-a9a1-67c3f0020a62", :request_message => "")
#<ContractStatusChange @values={:changed_status=>"", :date_changed=>2011-10-31 15:06:47 UTC, :contract_id=>"77b3271e-1563-4cd4-a9a1-67c3f0020a62", :request_message=>""}>
(rdb:3) p x.date_changed
2011-10-31 15:06:47 UTC
(rdb:3) p x.save
(0.000136s) BEGIN
(0.002530s) INSERT INTO `contract_status_change` (`changed_status`, `date_changed`, `contract_id`, `request_message`, `contract_status_change_id`) VALUES ('None', --->>'15:06:47'<<---, '77b3271e-1563-4cd4-a9a1-67c3f0020a62', '', 'a81ee36a-8b85-0f1d-136f-403fd1b23313')
(0.000478s) SELECT * FROM `contract_status_change` WHERE (`contract_status_change_id` = 'a81ee36a-8b85-0f1d-136f-403fd1b23313') LIMIT 1
(0.000747s) ROLLBACK
Sequel::InvalidValue Exception: ArgumentError: argument out of range
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment