 # s2.2.7.8
-
-EventEmitter = require('events').EventEmitter
 
 types =
   1:


        valueLength = buffer.readUInt8()
        oldValue = buffer.readBuffer(valueLength)
      else
        throw new Error("Unsupported ENVCHANGE type #{typeNumber} #{type.name} at offset #{buffer.position - 1}")

    if type.name == 'PACKET_SIZE'
      newValue = parseInt(newValue)
      oldValue = parseInt(oldValue)
  else
    throw new Error("Unsupported ENVCHANGE type #{typeNumber} at offset #{buffer.position - 1}")



  if type
    switch type.name
      when 'DATABASE', 'LANGUAGE', 'CHARSET'
        newValue = buffer.readBVarchar()
        oldValue = buffer.readBVarchar()
      when 'SQL_COLLATION'
