mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
compiler: optionals default value
This commit is contained in:

committed by
Alexander Medvednikov

parent
4e64a58ac1
commit
df5faf35e5
@ -2,6 +2,7 @@ import sqlite
|
||||
|
||||
fn test_sqlite() {
|
||||
db := sqlite.connect('users.db')
|
||||
db.exec("drop table if exists users")
|
||||
db.exec("create table users (id integer primary key, name text default '');")
|
||||
|
||||
db.exec("insert into users (name) values ('Sam')")
|
||||
|
Reference in New Issue
Block a user