jmoiron/sqlx — pull request #47 by carbocation (2014-02-12 06:40:37+00:00)
Title: Fix for NamedExec panics with unexported fields

Fixes panics ("reflect.Value.Interface: cannot return value obtained from unexported field or method") when unexported fields are passed into NamedExec (or BindStruct or getValues). This patch makes the same checks that are made elsewhere (that PkgPath == 0) to ensure that the fields used in NamedExec are actually exported.