mirror of
https://github.com/postgres/postgres.git
synced 2025-08-08 06:02:22 +03:00
Fix c++ copy example code.
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user