diff options
author | brnrd <brnrd@FreeBSD.org> | 2018-05-07 03:43:46 +0800 |
---|---|---|
committer | brnrd <brnrd@FreeBSD.org> | 2018-05-07 03:43:46 +0800 |
commit | 45b2b7766882a8396922ae7a439aee835df484b7 (patch) | |
tree | 791749a3ee5209fcc946fa75176a026bf3982874 | |
parent | 92ba4afc851e1f5d302267c64527c22317bf97d8 (diff) | |
download | freebsd-ports-gnome-45b2b7766882a8396922ae7a439aee835df484b7.tar.gz freebsd-ports-gnome-45b2b7766882a8396922ae7a439aee835df484b7.tar.zst freebsd-ports-gnome-45b2b7766882a8396922ae7a439aee835df484b7.zip |
databases/mariadb100-server: Fix build with clang 6
PR: 227244
Submitted by: dim
-rw-r--r-- | databases/mariadb100-server/files/patch-MDEV-15768 | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/databases/mariadb100-server/files/patch-MDEV-15768 b/databases/mariadb100-server/files/patch-MDEV-15768 new file mode 100644 index 000000000000..af5d15864d61 --- /dev/null +++ b/databases/mariadb100-server/files/patch-MDEV-15768 @@ -0,0 +1,72 @@ +--- storage/connect/tabjson.cpp.orig 2018-04-26 19:47:48 UTC ++++ storage/connect/tabjson.cpp +@@ -195,7 +195,7 @@ int JSONDISC::GetColumns(PGLOBAL g, PCSZ + tdp->Fn = GetStringTableOption(g, topt, "Filename", NULL); + + if (!(tdp->Database = SetPath(g, db))) +- return NULL; ++ return 0; + + tdp->Objname = GetStringTableOption(g, topt, "Object", NULL); + tdp->Base = GetIntegerTableOption(g, topt, "Base", 0) ? 1 : 0; +@@ -243,14 +243,14 @@ int JSONDISC::GetColumns(PGLOBAL g, PCSZ + tjsp = new(g) TDBJSON(tdp, new(g) MAPFAM(tdp)); + + if (tjsp->MakeDocument(g)) +- return NULL; ++ return 0; + + jsp = (tjsp->GetDoc()) ? tjsp->GetDoc()->GetValue(0) : NULL; + } else { + if (!(tdp->Lrecl = GetIntegerTableOption(g, topt, "Lrecl", 0))) + if (!mgo) { + sprintf(g->Message, "LRECL must be specified for pretty=%d", tdp->Pretty); +- return NULL; ++ return 0; + } else + tdp->Lrecl = 8192; // Should be enough + +@@ -261,7 +261,7 @@ int JSONDISC::GetColumns(PGLOBAL g, PCSZ + tjnp = new(g)TDBJSN(tdp, new(g) UNZFAM(tdp)); + #else // !ZIP_SUPPORT + sprintf(g->Message, MSG(NO_FEAT_SUPPORT), "ZIP"); +- return NULL; ++ return 0; + #endif // !ZIP_SUPPORT + } else if (tdp->Uri) { + if (tdp->Driver && toupper(*tdp->Driver) == 'C') { +@@ -269,14 +269,14 @@ int JSONDISC::GetColumns(PGLOBAL g, PCSZ + tjnp = new(g) TDBJSN(tdp, new(g) CMGFAM(tdp)); + #else + sprintf(g->Message, "Mongo %s Driver not available", "C"); +- return NULL; ++ return 0; + #endif + } else if (tdp->Driver && toupper(*tdp->Driver) == 'J') { + #if defined(JAVA_SUPPORT) + tjnp = new(g) TDBJSN(tdp, new(g) JMGFAM(tdp)); + #else + sprintf(g->Message, "Mongo %s Driver not available", "Java"); +- return NULL; ++ return 0; + #endif + } else { // Driver not specified + #if defined(CMGO_SUPPORT) +@@ -285,7 +285,7 @@ int JSONDISC::GetColumns(PGLOBAL g, PCSZ + tjnp = new(g) TDBJSN(tdp, new(g) JMGFAM(tdp)); + #else + sprintf(g->Message, MSG(NO_FEAT_SUPPORT), "MONGO"); +- return NULL; ++ return 0; + #endif + } // endif Driver + +@@ -304,7 +304,7 @@ int JSONDISC::GetColumns(PGLOBAL g, PCSZ + tjnp->SetG(G); + + if (tjnp->OpenDB(g)) +- return NULL; ++ return 0; + + switch (tjnp->ReadDB(g)) { + case RC_EF: |