elliotchance / vsql

✌️ Single-file or PostgreSQL-server compatible transactional SQL database written in pure V.
https://vsql.readthedocs.io
MIT License
299 stars 20 forks source link

Failure to create lock file #95

Open BEN00262 opened 2 years ago

BEN00262 commented 2 years ago
vsql>
vsql> create table products (title character varying(100), price float);
msg: Option('CREATE TABLE 1')
1 row (0 ms)

vsql> INSERT INTO products (title, price) VALUES ('Instant Pot', 144.89);
cli execution error: cannot create lock file sample2.vsql.lock
BEN00262 commented 2 years ago

Happening in windows version 20H2 ( OS Build 19042.1706) Vlang version: V 0.2.4 e031096

elliotchance commented 2 years ago

The error message is coming from internal V through flock_windows.c.v which is untested other than through CI and CI doesn't even run windows so that's not even valid.

I wonder if it's something obvious like permissions, an invalid path (slashed maybe?) or trying to put the file somewhere it shouldn't? I'm not actually able to conform this without a windows machine...

BEN00262 commented 2 years ago

will try to locate and fix it ( using a windows machine atm )