bmizerany/pq.go — Issue #11: Error on query that includes custom types 
Author: dspiteself
Created: 2012-02-02 18:35:59+00:00
State: open

I use custom types in postgres. In this example I use a json typed column named data.
when I run
```
rows, err := db.Query("SELECT id,data from relationship limit 1")
if err != nil {
log.Print(err)
}
```
I get
```
2012/02/02 12:28:24 Code: (42703) - File: (.\src\backend\parser\parse_expr.c) - Message: (column "data" does not exist) - Line: (760) - Position: (19) - Severity: (ERROR) - Routine: (transformColumnRef)
```
even
```
rows, err := db.Query("SELECT id,data::varchar from relationship limit 1")
if err != nil {
log.Print(err)
}
```
yields the same error

I am really excited about this project.
I just need a little help on where to start to fix this error.
I am unfamiliar with the postgres wire protocol but if you point me to a reference i can figure it out.