]> granicus.if.org Git - postgresql/commitdiff
ecpg: Change --version output to common style
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 12 Sep 2018 12:33:15 +0000 (14:33 +0200)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 12 Sep 2018 12:33:15 +0000 (14:33 +0200)
When we removed the ecpg-specific versions, we also removed the
"(PostgreSQL)" from the --version output, which we show in other
programs.

Reported-by: Ioseph Kim <pgsql-kr@postgresql.kr>
src/interfaces/ecpg/preproc/ecpg.c

index 9a94e395455fd67281c24943cf80be1ec506ddda..f39bf697d64ea8001fd1ca08db1ec599c61a4562 100644 (file)
@@ -149,7 +149,7 @@ main(int argc, char *const argv[])
                }
                if (strcmp(argv[1], "--version") == 0 || strcmp(argv[1], "-V") == 0)
                {
-                       printf("ecpg %s\n", PG_VERSION);
+                       printf("ecpg (PostgreSQL) %s\n", PG_VERSION);
                        exit(0);
                }
        }