Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbde3455

Browse files
committed
|
|Here is a fix for the psql alignment problem. It turns out that libpq|was trying to determine if the column contained only numeric values so|it could right justify it. The 'e' values were taked as exponient|values and all columns were considered numeric.||The patch excludes 'e' and 'E' as being valid first-column numeric|values.|Submitted by: Bruce...
1 parent476ef10 commitbde3455

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/interfaces/libpq/fe-exec.c‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.16 1996/08/1404:56:55 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.17 1996/08/1416:44:51 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -999,7 +999,8 @@ PQprint(FILE *fout,
999999
{
10001000
if ((fs_len==1&& (*p==*(po->fieldSep)))||*p=='\\')
10011001
*(o++)='\\';
1002-
if (po->align&& !((*p >='0'&&*p<='9')||*p=='.'||*p=='E'||*p=='e'||*p==' '||*p=='-'))
1002+
if (po->align&& (*pval=='E'||*pval=='e'||
1003+
!((*p>='0'&&*p<='9')||*p=='.'||*p=='E'||*p=='e'||*p==' '||*p=='-')))
10031004
fieldNotNum[j]=1;
10041005
}
10051006
*o='\0';

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp