Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
DataX
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
risk-feature
DataX
Commits
8b538d0a
Commit
8b538d0a
authored
Dec 17, 2018
by
chase.wc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure table name to lower
parent
a57425d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
AdsClientProxy.java
.../datax/plugin/writer/adswriter/insert/AdsClientProxy.java
+3
-3
No files found.
adswriter/src/main/java/com/alibaba/datax/plugin/writer/adswriter/insert/AdsClientProxy.java
View file @
8b538d0a
...
...
@@ -90,14 +90,14 @@ public class AdsClientProxy implements AdsProxy {
throw
DataXException
.
asDataXException
(
AdsWriterErrorCode
.
INVALID_CONFIG_VALUE
,
"url should be in host:port format!"
);
}
this
.
table
=
table
.
toLowerCase
();
databaseConfig
.
setHost
(
hostAndPort
[
0
]);
databaseConfig
.
setPort
(
Integer
.
parseInt
(
hostAndPort
[
1
]));
databaseConfig
.
setUser
(
configuration
.
getString
(
Key
.
USERNAME
));
databaseConfig
.
setPassword
(
configuration
.
getString
(
Key
.
PASSWORD
));
databaseConfig
.
setDatabase
(
configuration
.
getString
(
Key
.
SCHEMA
));
databaseConfig
.
setTable
(
Collections
.
singletonList
(
table
));
this
.
table
=
table
;
databaseConfig
.
setColumns
(
table
,
columns
);
databaseConfig
.
setTable
(
Collections
.
singletonList
(
this
.
table
));
databaseConfig
.
setColumns
(
this
.
table
,
columns
);
// 如果出现insert失败,是否跳过
boolean
ignoreInsertError
=
configuration
.
getBool
(
"ignoreInsertError"
,
false
);
...
...
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