Displaying 7 results from an estimated 7 matches for "string_to_binari".
Did you mean:
string_to_binary
2006 Mar 04
1
active migration gives undefined_method ''string_to_binary''
has anyone ever seen that:
c:\rails\test>rake migrate --trace
(in c:/rails/test)
** Invoke migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute migrate
rake aborted!
undefined method `string_to_binary'' for
ActiveRecord::ConnectionAdapters::ColumnDefinition:Class
2006 Mar 03
0
binary_to_string/string_to_binary confusion
I am attempting to write a FrontBase activerecord adaptor. I''m down
to only two unit tests failing, and one of them is binary_test.rb.
I can''t figure out the logic of binary to string conversion.
Internally, I want the ''data'' attribute to be a String object
identical to the contents of
BINARY_FIXTURE_PATH = File.dirname(__FILE__) +
2006 Jan 09
3
rails ignoring the migration file
I have a mysql database that I am trying to use migrations on. The
problem that I am having is that when I create a blob field in my
migration file like so:
t.column "data", :binary, :limit => 15.megabytes, :null => false
rails changes it to this in the schema:
t.column "data", :binary, :default => "", :null => false
not only is this not what I wanted
2006 Jan 01
11
Migration db_schema_import always fails.
I have not been able to get DB migrations to work at all in Rails 1.0
for me. On multiple platforms I continually get the same errors. It
took me awhile to figure out some initial things, such as Migrations
don''t seem to support Enum column types, and doesn''t really support
Foreign key relationships (the constraints at least). After changing
my DB schema to jive more with the
2007 Apr 03
0
[Sybase Adaptor] find_by_xxx does not work correctly.
Hi
Please advice me about the following problem.
* Problem
find_by_xxx method does not work correctly the following caes with
sybase adaptor.
* How to reproducible
model :users
t.column :code, :string <-- :string column
t.column :last_name, :string
t.column :first_name,:string
>> User.find(1)
=> #<User:0x2abe232a68e8
2006 Oct 19
3
Selecting datetime values from SQL Server (year < 1970)
All,
Rails 1.1.6.
Any AR find() call that generates a SELECT * type query against a table
with a DATETIME column in SQL Server whose value occurs before 1970 will
fail, because of the coercion of SQL Server datetime types to Time
values in Ruby.
See sqlserver_adapter.rb line 490
(record[col] = record[col].to_time if record[col].is_a? DBI::Timestamp)
If I remove the coercion (just commenting
2006 Jan 20
47
SQL Server datetime error
i have a problem with the datetime format of rails. i am unable to save
a dataset to the db. here''s the error message -- the original error
message was in german, so i translated it -- i get:
DBI::DatabaseError: Execute
OLE error code:80040E07 in Microsoft OLE DB Provider for SQL Server
Couldn''t convert a char-Datatype to datetime
HRESULT error code:0x80020009