Search in sources :

Example 1 with NativeCharsetSettings

use of com.mysql.cj.NativeCharsetSettings in project aws-mysql-jdbc by awslabs.

the class NativeProtocol method beforeHandshake.

@Override
public void beforeHandshake() {
    // Reset packet sequences
    this.packetReader.resetMessageSequence();
    // Create session state
    this.serverSession = new NativeServerSession(this.propertySet);
    this.serverSession.setCharsetSettings(new NativeCharsetSettings((NativeSession) this.session));
    // Read the first packet
    this.serverSession.setCapabilities(readServerCapabilities());
}
Also used : NativeCharsetSettings(com.mysql.cj.NativeCharsetSettings) NativeSession(com.mysql.cj.NativeSession)

Aggregations

NativeCharsetSettings (com.mysql.cj.NativeCharsetSettings)1 NativeSession (com.mysql.cj.NativeSession)1