Unix VFS: Support for long (>512) paths
(1) By Yoann Congal (ycongal_smile) on 2023-01-12 10:49:00 [source]
Hi,
When working on a bug in for the Yocto project, I've hit the limit on the database path length imposed by the Unis VFS : Simply, when a database path is more that 505 char long, sqlite fails to open it...
If I understood the code correctly, this is linked to : src/os_unix.c:179:
#define MAX_PATHNAME 512
- Can this be considered a bug?
- Is there any plan to increase this limit?
- Would you be wiling to accept a patch?
On Linux, there should be no problem to open a database with a long path (while staying below 4K char) but I really not know about the other Unixes...
Note: There is an old ticket closed as "Won't fix" about this : https://sqlite.org/cgi/src/tktview/c060923a5422590b3734