Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit 8ec7a3c

Browse files
author
Chris Board
committed
Treat as UTF8MB4_UNICODE_CI as UTF8 for older MySQL Servers
1 parent 70553f5 commit 8ec7a3c

File tree

6 files changed

+7
-5
lines changed

6 files changed

+7
-5
lines changed
0 Bytes
Binary file not shown.

.idea/caches/gradle_models.ser

-3.35 KB
Binary file not shown.

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AndroidMySQLConnector/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ else
2020
}
2121

2222
archivesBaseName="AndroidMySQLConnector"
23-
version '0.31'
23+
version '0.33'
2424
group 'com.BoardiesITSolutions'
2525

2626

@@ -30,8 +30,8 @@ android {
3030
//applicationId "com.BoardiesITSolutions.AndroidMySQLConnector"
3131
minSdkVersion 19
3232
targetSdkVersion 29
33-
versionCode 22
34-
versionName "0.31"
33+
versionCode 23
34+
versionName "0.33"
3535
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
3636
}
3737
buildTypes {

AndroidMySQLConnector/src/main/java/com/BoardiesITSolutions/AndroidMySQLConnector/Connection.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ public class Connection
8989
private final int LATIN1_SWEDISH_CI = 0x08;
9090
private final int UTF8_GENERAL_CI = 0x21;
9191
private final int UTF8_UNICODE_CI =0xc0;
92+
private final int UTF8MB4_UNICODE_CI = 0xe0;
9293
private final int BINARY = 0x3f;
9394

9495
private AppCompatActivity activity;
@@ -484,6 +485,7 @@ private void setCharset() throws UnsupportedMySQLServerException {
484485
break;
485486
case UTF8_GENERAL_CI:
486487
case UTF8_UNICODE_CI:
488+
case UTF8MB4_UNICODE_CI:
487489
charset = Charset.forName("UTF-8");
488490
break;
489491
default:

demoapplication/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ dependencies {
3030
implementation fileTree(dir: 'libs', include: ['*.jar'])
3131

3232
implementation 'androidx.appcompat:appcompat:1.1.0'
33-
implementation 'com.github.BoardiesITSolutions:Android-MySQL-Connector:0.32_MySQL8'
33+
implementation 'com.github.BoardiesITSolutions:Android-MySQL-Connector:0.33_MySQL8'
3434
}

0 commit comments

Comments
 (0)