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
20241a4c
Commit
20241a4c
authored
Jun 25, 2002
by
Hiroshi Inoue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1) Add support for GB18030.
2) Fix a bug about the handling of large objects.
parent
0b584830
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletion
+22
-1
src/interfaces/odbc/execute.c
src/interfaces/odbc/execute.c
+1
-1
src/interfaces/odbc/multibyte.c
src/interfaces/odbc/multibyte.c
+20
-0
src/interfaces/odbc/multibyte.h
src/interfaces/odbc/multibyte.h
+1
-0
No files found.
src/interfaces/odbc/execute.c
View file @
20241a4c
...
...
@@ -777,7 +777,7 @@ PGAPI_ParamData(
/* commit transaction if needed */
if
(
!
ci
->
drivers
.
use_declarefetch
&&
CC_is_in_autocommit
(
stmt
->
hdbc
))
{
if
(
CC_commit
(
stmt
->
hdbc
))
if
(
!
CC_commit
(
stmt
->
hdbc
))
{
stmt
->
errormsg
=
"Could not commit (in-line) a transaction"
;
stmt
->
errornumber
=
STMT_EXEC_ERROR
;
...
...
src/interfaces/odbc/multibyte.c
View file @
20241a4c
...
...
@@ -56,6 +56,7 @@ pg_CS CS_Table[] =
{
"GBK"
,
GBK
},
{
"UHC"
,
UHC
},
{
"WIN1250"
,
WIN1250
},
{
"GB18030"
,
GB18030
},
{
"OTHER"
,
OTHER
}
};
...
...
@@ -239,6 +240,25 @@ pg_CS_stat(int stat,unsigned int character,int characterset_code)
stat
=
0
;
}
break
;
/*Chinese GB18030 support.Added by Bill Huang <bhuang@redhat.com> <bill_huanghb@ybb.ne.jp>*/
case
GB18030
:
{
if
(
stat
<
2
&&
character
>
0x80
)
stat
=
2
;
else
if
(
stat
=
2
)
if
(
character
>=
0x30
&&
character
<=
0x39
)
stat
=
3
;
else
stat
=
1
;
else
if
(
stat
=
3
)
if
(
character
>=
0x30
&&
character
<=
0x39
)
stat
=
1
;
else
stat
=
3
;
else
stat
=
0
;
}
break
;
default:
{
stat
=
0
;
...
...
src/interfaces/odbc/multibyte.h
View file @
20241a4c
...
...
@@ -41,6 +41,7 @@
#define GBK 30
/* GBK */
#define UHC 31
/* UHC */
#define WIN1250 32
/* windows-1250 */
#define GB18030 33
/* GB18030 */
#define OTHER -1
#define MAX_CHARACTERSET_NAME 24
...
...
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