Commit 1b20f8ac authored by Bruce Momjian's avatar Bruce Momjian

Fix c++ copy example code.

parent 2020e245
...@@ -43,8 +43,8 @@ main() ...@@ -43,8 +43,8 @@ main()
cout << "Line: \"3\thello world\t4.5\" copied..." << endl; cout << "Line: \"3\thello world\t4.5\" copied..." << endl;
data.PutLine("4\tgoodbye word\t7.11\n"); data.PutLine("4\tgoodbye word\t7.11\n");
cout << "Line: \"4\tgoodbye word\t7.11\" copied..." << endl; cout << "Line: \"4\tgoodbye word\t7.11\" copied..." << endl;
data.PutLine(".\n"); data.PutLine("\\.\n");
cout << "Line: \".\" copied..." << endl; cout << "Line: \"\\.\" copied..." << endl;
if ( !data.EndCopy() ) if ( !data.EndCopy() )
cout << "Ended COPY succesfully..." << endl; cout << "Ended COPY succesfully..." << endl;
else cerr << "End Copy failed..." << endl; else cerr << "End Copy failed..." << endl;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment