Re: edbi on 64 bit machines?

new topic     » goto parent     » topic index » view thread      » older message » newer message
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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu