on 2013 Jun 24 10:35 AM
This is no real question, more something I stumbled upon:
Unload will create 1 subdir, but not a hierarchy of 2?
If directory X doesn't exist it is not created in the following statement:
unload select * from T into file 'c:\\\\X\\\\Y\\\\file.txt' you get: ERROR Cannot access file 'c:\\X\\Y\\file.txt' -- No such file or directory
but if X exists the not existing Y will be created.
For what ever reason, perhaps historical or perhaps a simple omission, the code that creates/opens the output file for the unload statement only attempts to create the parent directory ... and does not handle the case of a non-existent parent's parent directory.
It would be a reasonable (and fairly easy to implement) enhancement to create multiple levels of directories.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
68 | |
8 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.