Eonblast/Emysql — Issue #15: record "connection" name clash with amqp_client record
Author: emacstheviking
Created: 2011-11-30 11:00:06+00:00
State: open

I don't know who is right or wrong, but I thought that it was "best practice" to prefix all record names with the module name to avoid clashes because Erlang doesn't have name spaces for these things, yet?.

I have a situation where I am using Emysql and the amqp_client in the same module and guess what, they are both trying to define a record called "connection":

./lib/erlang/lib/emysql-0.2/include/emysql.hrl:30:-record(connection, ...
./lib/erlang/lib/rabbit_common-2.7.0/include/rabbit.hrl:30:-record(connection, {protocol, user, ...

I am going to change the Emysql code and rebuild and reinstall it into my local Erlang development zone and see how I get on, I will submit patches or something unless you beat me to it first! I fancy my chances of tinkering with Emyswl and not breaking it as higher than fiddling with the amqp_client at the moment.

All the best!
Sean Charles.