Native PostgreSQL driver / client for Zig
0

Configure Feed

Select the types of activity you want to include in your feed.

accomodate Zig changes

Karl Seguin (Jan 20, 2025, 9:01 AM +0800) 4ddae099 8e6c00ae

+2 -2
+2 -2
src/result.zig
··· 357 357 fn mapColumn(self: *const Row, field: *const std.builtin.Type.StructField, optional_column_index: ?usize, allocator: ?Allocator) !field.type { 358 358 const T = field.type; 359 359 const column_index = optional_column_index orelse { 360 - if (field.default_value) |dflt| { 360 + if (field.default_value_ptr) |dflt| { 361 361 return @as(*align(1) const field.type, @ptrCast(dflt)).*; 362 362 } 363 363 return error.FieldColumnMismatch; ··· 383 383 fn isSlice(comptime T: type) ?type { 384 384 switch (@typeInfo(T)) { 385 385 .pointer => |ptr| { 386 - if (ptr.size != .Slice) { 386 + if (ptr.size != .slice) { 387 387 compileHaltGetError(T); 388 388 } 389 389 return if (ptr.child == u8) null else ptr.child;