Skip to content

Commit 1b20f8a

Browse files
committed
Fix c++ copy example code.
1 parent 2020e24 commit 1b20f8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interfaces/libpq++/examples/testlibpq6.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ main()
4343
cout << "Line: \"3\thello world\t4.5\" copied..." << endl;
4444
data.PutLine("4\tgoodbye word\t7.11\n");
4545
cout << "Line: \"4\tgoodbye word\t7.11\" copied..." << endl;
46-
data.PutLine(".\n");
47-
cout << "Line: \".\" copied..." << endl;
46+
data.PutLine("\\.\n");
47+
cout << "Line: \"\\.\" copied..." << endl;
4848
if ( !data.EndCopy() )
4949
cout << "Ended COPY succesfully..." << endl;
5050
else cerr << "End Copy failed..." << endl;

0 commit comments

Comments
 (0)