Re: edbi on 64 bit machines?
- Posted by mattlewis (admin) Apr 27, 2012
- 3956 views
Jerome said...
mattlewis said...
Yes! It looks like some of the edbi mysql driver isn't portable. I think edbi_next() is probably causing most (if not all) of this. Try updating it (untested):
Matt, thanks for the update! It looks like only sequences are failing now except for VARCHAR.
Looks like mysql_fetch_direct() is also lacking in portability. Try this (again, untested):
ifdef BITS32 then constant MYSQL_FIELD_type = 76 elsedef constant MYSQL_FIELD_type = 112 end ifdef function mysql_fetch_field_direct(atom dbr, integer idx) atom p_f = c_func(h_mysql_fetch_field_direct, { dbr, idx }) sequence name = peek_string(peek_pointer(p_f)) integer typ = peek4u(p_f + MYSQL_FIELD_type) return { name, typ } end function
Matt