Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 66... Línea 66...
66
    }
66
    }
Línea 67... Línea 67...
67
 
67
 
68
    /**
68
    /**
69
     * Returns more specific database driver type
69
     * Returns more specific database driver type
70
     * Note: can be used before connect()
70
     * Note: can be used before connect()
71
     * @return string db type mysqli, pgsql, oci, mssql, sqlsrv
71
     * @return string db type mysqli, pgsql, mssql, sqlsrv
72
     */
72
     */
73
    protected function get_dbtype() {
73
    protected function get_dbtype() {
74
        return 'mariadb';
74
        return 'mariadb';
Línea 111... Línea 111...
111
        if (version_compare($info['version'], '10.0.5', '>=')) {
111
        if (version_compare($info['version'], '10.0.5', '>=')) {
112
            return true;
112
            return true;
113
        }
113
        }
114
        return false;
114
        return false;
115
    }
115
    }
-
 
116
 
-
 
117
    /**
-
 
118
     * MariaDB supports the COUNT() window function and provides a performance improvement.
-
 
119
     *
-
 
120
     * @return bool
-
 
121
     */
-
 
122
    public function is_count_window_function_supported(): bool {
-
 
123
        return true;
-
 
124
    }
116
}
125
}