Skip to content

Commit 8896cee

Browse files
committed
WIP macaddr support
1 parent 4b756bb commit 8896cee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/dinosql/gen.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,9 @@ func (r Result) goInnerType(col core.Column, settings config.CombinedSettings) s
693693
case "inet":
694694
return "net.IP"
695695

696+
case "macaddr", "macaddr8":
697+
return "net.HardwareAddr"
698+
696699
case "void":
697700
// A void value always returns NULL. Since there is no built-in NULL
698701
// value into the SQL package, we'll use sql.NullBool

0 commit comments

Comments
 (0)