psql_copy.patch

application/octet-stream

Filename: psql_copy.patch
Type: application/octet-stream
Part: 0
Message: A question about the psql \copy command

Patch

Format: unified
File+
src/bin/psql/copy.c 1 1
diff --git a/src/bin/psql/copy.c b/src/bin/psql/copy.c
index a31d789..4ba385c 100644
--- a/src/bin/psql/copy.c
+++ b/src/bin/psql/copy.c
@@ -191,7 +191,7 @@ parse_slash_copy(const char *args)
 	else
 		goto error;
 
-	token = strtokx(NULL, whitespace, NULL, "'",
+	token = strtokx(NULL, whitespace, ";", "'",
 					0, false, true, pset.encoding);
 	if (!token)
 		goto error;