message: fix: allow loading of jdbc client on 32bit systems
diff: @@ -13,16 +13,24 @@ public class DuckDBNative {
  static {
  try {
  String os_name = "";
  - String os_arch = "";
  + String os_arch;
  String os_name_detect = System.getProperty("os.name").toLowerCase().trim();
  String os_arch_detect = System.getProperty("os.arch").toLowerCase().trim();
  - if (os_arch_detect.equals("x86_64") || os_arch_detect.equals("amd64")) {
  + switch (os_arch_detect) {
  + case "x86_64":
  + case "amd64":
  os_arch = "amd64";
  - }
  - if (os_arch_detect.equals("aarch64") || os_arch_detect.equals("arm64")) {
  + break;
  + case "aarch64":
  + case "arm64":
  os_arch = "arm64";
  + break;
  + case "i386":
  + os_arch = "i386";
  + break;
  + default:
  + throw new IllegalStateException("Unsupported system architecture");
  }
  - // TODO 32 bit gunk
  if (os_name_detect.startsWith("windows")) {
  os_name = "windows";
  