Fixed cast bug for NULL table entries.
Merge pull request #97 from howleysv/null-field-fix

Fixed cast bug for NULL table entries.
Remove emysql_util: prefixes from in emysql_util

In a handful of places in emysql_util, there were a few calls to
emysql_util:do_something(), I just removed the extraneous emysql_util:
prefixes.
Convert tabs to spaces in emysql_util
Add emysql_util:insert_id/1 and affected_rows/1

All in the name of not requiring the programmer to include the
emysql.hrl file.
Remove is_record() from util calls.

This is just done to make the calls more consistent. Previously, in some
places, it was is_record(result_packet), and in others it was
Res = #result_packet. This just makes all calls in util consistent.

Also, I fixed the ordering of the previously introduced functions
insert_id/1 and affected_rows/1, which were originally put in the
-export without being alphabetical. So I made them alphabetical.
Add emysql_util:result_type/1

This is a more straightforward way for a user to determine the packet
type, rather than having to do element(1, Packet).
Further simplification of emysql_util:field_names
Update credits in readme so emails actually email
Replace array:to_list(array:new()) with lists:duplicate

Perhaps there was a performance reason for doing
array:to_list(array:new(length(FieldNames))), but in my non-scientific
benchmarks, it appeared to mostly (but only marginally) faster to use
lists:duplicate, and frankly, I think it's a little clearer what's going
on with lists:duplicate, since it's a single function call rather than
having to know that a new empty array of size X will return a list of X
undefined atoms from array:to_list.
modified mothed of send connection to a waiting process
Try to get long packets in a single gen_tcp:recv call
Merge branch 'master' of git://github.com/redink/Emysql into m
Do not get smaller packets than the tcp buffer size
Merge pull request #102 from manastech/master

Improve performance when retrieving large blobs
Merge remote-tracking branch 'upstream/master'

Only conflict was a decode of a record.

Conflicts:
	src/emysql_util.erl