From 94f9db92114a559639fbe0b1c5deda13962ca8a2 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Wed, 12 Aug 2026 02:28:56 -0700 Subject: [PATCH] sqlite3: rely on @hasDecl less --- src/sqlite3.zig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sqlite3.zig b/src/sqlite3.zig index 4cfc94eecdf78c88705d2235e68aa6292c70ea9f..4fa30adee11df9289f6ad95ddc55713207482711 100644 --- a/src/sqlite3.zig +++ b/src/sqlite3.zig @@ -128,12 +128,13 @@ pub fn nameForType2(T: type) []const u8 { } if (tinfo == .@"struct") { const info = tinfo.@"struct"; - if (@hasDecl(T, "baseTypeName")) return T.baseTypeName; + if (@hasDecl(T, "BaseType") and T.BaseType != []const u8) return T.baseTypeName; if (@hasDecl(T, "BaseType")) return nameForType2(T.BaseType); if (info.layout == .@"packed") return nameForType2(info.backing_integer.?); + return nameForType2(T.BaseType); } if (tinfo == .@"enum") { - if (@hasDecl(T, "baseTypeName")) return T.baseTypeName; + if (@hasDecl(T, "BaseType") and T.BaseType != []const u8) return T.baseTypeName; return nameForType2(T.BaseType); } if (tinfo == .int or tinfo == .bool) { -- 2.54.0