Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
be629abf
Commit
be629abf
authored
Sep 23, 2001
by
Tatsuo Ishii
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add pg_database_encoding_max_length() function.
parent
fae50f87
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
src/backend/utils/mb/wchar.c
src/backend/utils/mb/wchar.c
+11
-1
src/include/mb/pg_wchar.h
src/include/mb/pg_wchar.h
+2
-1
No files found.
src/backend/utils/mb/wchar.c
View file @
be629abf
/*
/*
* conversion functions between pg_wchar and multi-byte streams.
* conversion functions between pg_wchar and multi-byte streams.
* Tatsuo Ishii
* Tatsuo Ishii
* $Id: wchar.c,v 1.2
1 2001/09/21 15:27:38 tgl
Exp $
* $Id: wchar.c,v 1.2
2 2001/09/23 10:59:45 ishii
Exp $
*
*
* WIN1250 client encoding updated by Pavel Behal
* WIN1250 client encoding updated by Pavel Behal
*
*
...
@@ -573,4 +573,14 @@ pg_verifymbstr(const unsigned char *mbstr, int len)
...
@@ -573,4 +573,14 @@ pg_verifymbstr(const unsigned char *mbstr, int len)
}
}
return
NULL
;
return
NULL
;
}
}
/*
* fetch maximum length of a char encoding for the current database
*/
int
pg_database_encoding_max_length
(
void
)
{
return
pg_wchar_table
[
GetDatabaseEncoding
()].
maxmblen
;
}
#endif
#endif
src/include/mb/pg_wchar.h
View file @
be629abf
/* $Id: pg_wchar.h,v 1.3
1 2001/09/21 15:27:38 tgl
Exp $ */
/* $Id: pg_wchar.h,v 1.3
2 2001/09/23 10:59:45 ishii
Exp $ */
#ifndef PG_WCHAR_H
#ifndef PG_WCHAR_H
#define PG_WCHAR_H
#define PG_WCHAR_H
...
@@ -226,6 +226,7 @@ extern int pg_mbstrlen_with_len(const unsigned char *, int);
...
@@ -226,6 +226,7 @@ extern int pg_mbstrlen_with_len(const unsigned char *, int);
extern
int
pg_mbcliplen
(
const
unsigned
char
*
,
int
,
int
);
extern
int
pg_mbcliplen
(
const
unsigned
char
*
,
int
,
int
);
extern
int
pg_mbcharcliplen
(
const
unsigned
char
*
,
int
,
int
);
extern
int
pg_mbcharcliplen
(
const
unsigned
char
*
,
int
,
int
);
extern
int
pg_encoding_max_length
(
int
);
extern
int
pg_encoding_max_length
(
int
);
extern
int
pg_database_encoding_max_length
(
void
);
extern
int
pg_set_client_encoding
(
int
);
extern
int
pg_set_client_encoding
(
int
);
extern
int
pg_get_client_encoding
(
void
);
extern
int
pg_get_client_encoding
(
void
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment