From fb12bbb10b228fddf40ebd0e463d5afcd9299ebb Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Thu, 12 Dec 2024 19:44:53 +0000 Subject: bump ncruces/go-sqlite3 to v0.21.0 (#3621) --- vendor/github.com/ncruces/go-sqlite3/util/osutil/open_windows.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vendor/github.com/ncruces/go-sqlite3/util/osutil') diff --git a/vendor/github.com/ncruces/go-sqlite3/util/osutil/open_windows.go b/vendor/github.com/ncruces/go-sqlite3/util/osutil/open_windows.go index 417faa562..febaf846e 100644 --- a/vendor/github.com/ncruces/go-sqlite3/util/osutil/open_windows.go +++ b/vendor/github.com/ncruces/go-sqlite3/util/osutil/open_windows.go @@ -101,6 +101,9 @@ func syscallOpen(path string, mode int, perm uint32) (fd Handle, err error) { const _FILE_FLAG_WRITE_THROUGH = 0x80000000 attrs |= _FILE_FLAG_WRITE_THROUGH } + if mode&O_NONBLOCK != 0 { + attrs |= FILE_FLAG_OVERLAPPED + } return CreateFile(pathp, access, sharemode, sa, createmode, attrs, 0) } -- cgit v1.2.3