Lines Matching full:column
233 func (db *fakeDB) columnType(table, column string) (typ string, ok bool) {
241 if cname == column {
377 return nil, errf("SELECT on table %q has invalid column spec of %q (index %d)", stmt.table, colspec, n)
379 column, value := nameVal[0], nameVal[1]
380 _, ok := c.db.columnType(stmt.table, column)
383 return nil, errf("SELECT on table %q references non-existent column %q", stmt.table, column)
387 return nil, errf("SELECT on table %q has pre-bound value for where column %q; need a question mark",
388 stmt.table, column)
390 stmt.whereCol = append(stmt.whereCol, column)
407 return nil, errf("CREATE table %q has invalid column spec of %q (index %d)", stmt.table, colspec, n)
426 return nil, errf("INSERT table %q has invalid column spec of %q (index %d)", stmt.table, colspec, n)
428 column, value := nameVal[0], nameVal[1]
429 ctype, ok := c.db.columnType(stmt.table, column)
432 return nil, errf("INSERT table %q references non-existent column %q", stmt.table, column)
434 stmt.colName = append(stmt.colName, column)
593 return nil, fmt.Errorf("fakedb: column %q doesn't exist or dropped since prepared statement was created", colname)
653 colIdx := make(map[string]int) // select column name -> column index in table
657 return nil, fmt.Errorf("fakedb: unknown column name %q", name)
671 return nil, fmt.Errorf("db: invalid where clause column %q", wcol)
833 panic("invalid fakedb column type of " + typ)