NULL handling in gen_storage_odbc #27

Merged
merged 3 commits into from Aug 8, 2012

3 participants

@brendonh

Using {auth_storage, odbc}, {auth_password_format, plain}, and Postgres, I noticed that it was trying to insert rows into passwd with the string "undefined" in storedkey, serverkey, salt, and iterationcount.

This tiny commit translates undefined to "NULL" in gen_storage_odbc writes, and conversely null to undefined in reads.

I was also getting a bunch of format crashes in debug prints which I've fixed with iolist_to_binary.

@goj goj referenced this pull request in goj/ejabberd Jun 4, 2012
@goj goj Binarify ejabberd_s2s:parent_domains/1
Fixes #27 on GitHub
470bbf8
@michalwski michalwski referenced this pull request in michalwski/MongooseIM Jul 5, 2012
@goj goj Binarify ejabberd_s2s:parent_domains/1
Fixes #27 on GitHub
3128b51
@badlop badlop merged commit 9fe0eff into processone:master Aug 8, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment