V: [ORM] error: unexpected `select`, expecting `name`

Created on 16 Jun 2020  路  2Comments  路  Source: vlang/v

V version: V 0.1.27 a69d8c6
OS: macOS, Linux Debian 10

What did you do?

v run examples/database/pg/customer.v

What did you expect to see?
Compile and run example

What did you see instead?

examples/database/pg/customer.v:23:21: error: unexpected `select`, expecting `name`
   21 |     }
   22 |
   23 |     nr_customers := db.select count from Customer
      |                        ~~~~~~
   24 |     println('Total customers: $nr_customers')
   25 |

ORM example doesn't compile, tested on Debian 10 and MacOS Catalina.

Bug

Most helpful comment

I'm working on this right now :)

All 2 comments

I'm working on this right now :)

I think this is fixed

Was this page helpful?
0 / 5 - 0 ratings

Related issues

arg2das picture arg2das  路  3Comments

choleraehyq picture choleraehyq  路  3Comments

penguindark picture penguindark  路  3Comments

vtereshkov picture vtereshkov  路  3Comments

markgraydev picture markgraydev  路  3Comments