-
Notifications
You must be signed in to change notification settings - Fork 7
PropertyType.MULTI_CHOICE #7168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
1209d6b
3942f7b
34f41a5
0a5dbbf
b3291a5
bae6284
81b37c5
1687b4d
d6fd803
288546d
4032cc3
164a550
f4b52c3
5518897
3429dbb
40f0588
98dac58
45a5bc3
14256bc
af54995
6840507
82652d5
caeed04
b4a312a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,6 +30,7 @@ | |
| import java.math.BigDecimal; | ||
| import java.math.BigInteger; | ||
| import java.nio.ByteBuffer; | ||
| import java.sql.Array; | ||
| import java.sql.Time; | ||
| import java.sql.Timestamp; | ||
| import java.sql.Types; | ||
|
|
@@ -299,6 +300,8 @@ protected Collection<Integer> getSqlTypes() | |
| } | ||
| }, | ||
|
|
||
| ARRAY(Types.ARRAY, Array.class), | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's still unclear to me how are we going to support comma character in choice. TabLoader would have stripped the enclosing quotes from "a,b" and then ARRAY needs to decide if this is a single choice a,b or [a, b]. But sure that can be dealt with in a later story.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See PageFlowUtil$TestCase.testGoogleSheetMultiValue(), the string value will be
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. a, b, "A,B" will parse to array.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. RowId, MultiChoice
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's kinda like writing a regular expression in a .java file. Regex has it's own escape rules and Java strings have their own escape rules. And you have to nest them. |
||
|
|
||
| NULL(Types.NULL, Object.class), | ||
|
|
||
| OTHER(Types.OTHER, Object.class); | ||
|
|
@@ -398,7 +401,6 @@ protected void addSqlTypes(Collection<Integer> sqlTypes) | |
| public static JdbcType valueOf(int type) | ||
| { | ||
| JdbcType jt = sqlTypeMap.get(type); | ||
|
|
||
| return null != jt ? jt : OTHER; | ||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.