lib/adapters/mysql.js
function () {
            var ret;
            if (!this.__serverVersion) {
                var self = this;
                ret = this.get(sql.version().sqlFunction).chain(function (version) {
                    var m = version.match(/(\d+)\.(\d+)\.(\d+)/);
                    return (self._serverVersion = (parseInt(m[1], 10) * 10000) + (parseInt(m[2], 10) * 100) + parseInt(m[3], 10));
                });
            } else {
                ret = new Promise().callback(this._serverVersion);
            }
            return ret.promise();
        }
function () {
            var ret;
            if (!this.__serverVersion) {
                var self = this;
                ret = this.get(sql.version().sqlFunction).chain(function (version) {
                    var m = version.match(/(\d+)\.(\d+)\.(\d+)/);
                    return (self._serverVersion = (parseInt(m[1], 10) * 10000) + (parseInt(m[2], 10) * 100) + parseInt(m[3], 10));
                });
            } else {
                ret = new Promise().callback(this._serverVersion);
            }
            return ret.promise();
        }
function ( ) { var ret ; if ( ! this . __serverVersion ) { var self = this ; ret = this . get ( sql . version ( ) . sqlFunction ) . chain ( function ( version ) { var m = version . match ( / (\d+)\.(\d+)\.(\d+) / ) ; return ( self . _serverVersion = ( parseInt ( m [ 1 ] , 10 ) * 10000 ) + ( parseInt ( m [ 2 ] , 10 ) * 100 ) + parseInt ( m [ 3 ] , 10 ) ) ; } ) ; } else { ret = new Promise ( ) . callback ( this . _serverVersion ) ; } return ret . promise ( ) ; }
Get version of MySQL server, used for determined capabilities.
Get version of MySQL server used for determined capabilities .