public static function version($mode = 'server') { if (array_key_exists('version', self::$dbProperties)) { return self::$dbProperties['version']; } else { self::$dbProperties['version'] = cubrid_version(); return self::$dbProperties['version']; } }
public function version() { if (!empty($this->connect)) { return cubrid_version(); } else { return false; } }
public function getVersion() { return cubrid_version(); }
if ($Settings['sqltype'] == "mysql" || $Settings['sqltype'] == "mysqli") { $DBType['Server'] = "MySQL " . sql_server_info($SQLStat); $DBType['Client'] = "MySQL " . sql_client_info($SQLStat); } if ($Settings['sqltype'] == "pgsql") { $DBType['Server'] = "Postgres " . sql_server_info($SQLStat); $DBType['Client'] = "Postgres " . sql_client_info($SQLStat); } if ($Settings['sqltype'] == "sqlite") { $DBType['Server'] = "SQLite " . sql_server_info($SQLStat); $DBType['Client'] = sql_client_info($SQLStat); } if ($Settings['sqltype'] == "cubrid") { $DBType['Server'] = "CUBRID " . sql_server_info($SQLStat); $DBType['Client'] = "CUBRID " . sql_client_info($SQLStat); $DBType['PHP'] = "CUBRID " . cubrid_version(); } if (!isset($Settings['vercheck'])) { $Settings['vercheck'] = 2; } if ($Settings['vercheck'] != 1 && $Settings['vercheck'] != 2) { $Settings['vercheck'] = 2; } if (!isset($Settings['start_date'])) { $Settings['start_date'] = GMTimeStamp(); } if (!isset($Settings['SQLThemes'])) { $Settings['SQLThemes'] = 'off'; } if ($Settings['SQLThemes'] != "on" && $Settings['SQLThemes'] != "off") { $Settings['SQLThemes'] = 'off';
/** * @group arnia-wrong-parameters-count */ public function testCubridVersion1() { if (OUTPUT_FUNCTION_NAME == true) { echo "\r\nRunning: " . __FUNCTION__ . " = "; } try { $var = cubrid_version(1); $this->assertTrue(FALSE, "Expected Exception not thrown."); } catch (Exception $e) { //echo $e->getMessage()."\r\n"; $this->assertEquals(0, cubrid_error_code()); $this->assertEquals(0, cubrid_error_code_facility()); $this->assertEquals('', cubrid_error_msg()); } }