You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-08 14:02:17 +03:00
Test and travis modification for testing against SkySQL
This commit is contained in:
@@ -12,6 +12,11 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
get_envvars();
|
||||
|
||||
if (IS_SKYSQL(hostname))
|
||||
return 0;
|
||||
|
||||
diag("hostname: %s", hostname);
|
||||
|
||||
for (i = 0; i < MAX_COUNT; ++i) {
|
||||
|
||||
if (mysql_library_init(-1, NULL, NULL) != 0) {
|
||||
@@ -25,6 +30,9 @@ int main(int argc, char *argv[]) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (force_tls)
|
||||
mysql_options(mysql, MYSQL_OPT_SSL_ENFORCE, &force_tls);
|
||||
|
||||
if (!mysql_real_connect(mysql, hostname, username, password, schema, port, socketname, 0)) {
|
||||
diag("mysql_real_connect failed: %s", mysql_error(mysql));
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user