Skip to content

Commit 904a80a

Browse files
authored
Merge pull request #1091 from bgrainger/query-attributes
Implement query attributes.
2 parents 13235bb + 85894bd commit 904a80a

37 files changed

+855
-60
lines changed

.ci/config/config.compression.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"SocketPath": "./../../../../../.ci/run/mysql/mysqld.sock",
55
"PasswordlessUser": "no_password",
66
"SecondaryDatabase": "testdb2",
7-
"UnsupportedFeatures": "Ed25519,RsaEncryption,CachingSha2Password,Tls12,Tls13,UnixDomainSocket,UuidToBin",
7+
"UnsupportedFeatures": "Ed25519,RsaEncryption,CachingSha2Password,QueryAttributes,Tls12,Tls13,UnixDomainSocket,UuidToBin",
88
"MySqlBulkLoaderLocalCsvFile": "../../../../TestData/LoadData_UTF8_BOM_Unix.CSV",
99
"MySqlBulkLoaderLocalTsvFile": "../../../../TestData/LoadData_UTF8_BOM_Unix.TSV"
1010
}

.ci/config/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"SocketPath": "./../../../../../.ci/run/mysql/mysqld.sock",
55
"PasswordlessUser": "no_password",
66
"SecondaryDatabase": "testdb2",
7-
"UnsupportedFeatures": "Ed25519,RsaEncryption,CachingSha2Password,Tls12,Tls13,UnixDomainSocket,UuidToBin",
7+
"UnsupportedFeatures": "Ed25519,RsaEncryption,CachingSha2Password,QueryAttributes,Tls12,Tls13,UnixDomainSocket,UuidToBin",
88
"MySqlBulkLoaderLocalCsvFile": "../../../../TestData/LoadData_UTF8_BOM_Unix.CSV",
99
"MySqlBulkLoaderLocalTsvFile": "../../../../TestData/LoadData_UTF8_BOM_Unix.TSV"
1010
}

.ci/docker-run.sh

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,29 @@ for i in `seq 1 120`; do
5555
echo "Creating mysqltest user"
5656
docker exec mysql bash -c 'mysql -uroot -ptest < /etc/mysql/conf.d/init.sql'
5757
if [ $? -ne 0 ]; then continue; fi
58+
5859
if [[ $OMIT_FEATURES != *"Sha256Password"* ]]; then
60+
echo "Creating sha256_password user"
5961
docker exec mysql bash -c 'mysql -uroot -ptest < /etc/mysql/conf.d/init_sha256.sql'
60-
if [ $? -ne 0 ]; then continue; fi
62+
if [ $? -ne 0 ]; then exit $?; fi
6163
fi
6264

6365
if [[ $OMIT_FEATURES != *"CachingSha2Password"* ]]; then
66+
echo "Creating caching_sha2_password user"
6467
docker exec mysql bash -c 'mysql -uroot -ptest < /etc/mysql/conf.d/init_caching_sha2.sql'
65-
if [ $? -ne 0 ]; then continue; fi
68+
if [ $? -ne 0 ]; then exit $?; fi
6669
fi
6770

6871
if [[ $OMIT_FEATURES != *"Ed25519"* ]]; then
72+
echo "Installing auth_ed25519 component"
6973
docker exec mysql bash -c 'mysql -uroot -ptest < /etc/mysql/conf.d/init_ed25519.sql'
70-
if [ $? -ne 0 ]; then continue; fi
74+
if [ $? -ne 0 ]; then exit $?; fi
75+
fi
76+
77+
if [[ $OMIT_FEATURES != *"QueryAttributes"* ]]; then
78+
echo "Installing query_attributes component"
79+
docker exec mysql mysql -uroot -ptest -e "INSTALL COMPONENT 'file://component_query_attributes';"
80+
if [ $? -ne 0 ]; then exit $?; fi
7181
fi
7282

7383
# exit if successful

azure-pipelines.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
arguments: 'tests\SideBySide\SideBySide.csproj -c Baseline'
6262
testRunTitle: 'Baseline tests'
6363
env:
64-
DATA__UNSUPPORTEDFEATURES: 'Ed25519,UnixDomainSocket'
64+
DATA__UNSUPPORTEDFEATURES: 'Ed25519,QueryAttributes,UnixDomainSocket'
6565
DATA__CONNECTIONSTRING: 'server=localhost;port=3306;user id=root;password=test;database=mysqltest;ssl mode=none;DefaultCommandTimeout=3600'
6666
DATA__CERTIFICATESPATH: '$(Build.Repository.LocalPath)\.ci\server\certs\'
6767
DATA__MYSQLBULKLOADERLOCALCSVFILE: '$(Build.Repository.LocalPath)\tests\TestData\LoadData_UTF8_BOM_Unix.CSV'
@@ -148,7 +148,7 @@ jobs:
148148
arguments: '-c Release --no-restore'
149149
testRunTitle: ${{ format('{0}, $(Agent.OS), {1}, {2}', 'mysql:8.0', 'net472/net5.0', 'No SSL') }}
150150
env:
151-
DATA__UNSUPPORTEDFEATURES: 'Ed25519,Tls11,UnixDomainSocket'
151+
DATA__UNSUPPORTEDFEATURES: 'Ed25519,QueryAttributes,Tls11,UnixDomainSocket'
152152
DATA__CONNECTIONSTRING: 'server=localhost;port=3306;user id=mysqltest;password=test;database=mysqltest;ssl mode=none;DefaultCommandTimeout=3600;AllowPublicKeyRetrieval=True;UseCompression=True'
153153

154154
- job: windows_integration_tests_2
@@ -185,7 +185,7 @@ jobs:
185185
arguments: '-c Release --no-restore'
186186
testRunTitle: ${{ format('{0}, $(Agent.OS), {1}, {2}', 'mysql:8.0', 'netcoreapp3.1/net6.0', 'No SSL') }}
187187
env:
188-
DATA__UNSUPPORTEDFEATURES: 'Ed25519,Tls11,UnixDomainSocket'
188+
DATA__UNSUPPORTEDFEATURES: 'Ed25519,QueryAttributes,Tls11,UnixDomainSocket'
189189
DATA__CONNECTIONSTRING: 'server=localhost;port=3306;user id=mysqltest;password=test;database=mysqltest;ssl mode=none;DefaultCommandTimeout=3600;AllowPublicKeyRetrieval=True'
190190

191191
- job: linux_integration_tests
@@ -197,22 +197,22 @@ jobs:
197197
matrix:
198198
'MySQL 5.6':
199199
image: 'mysql:5.6'
200-
unsupportedFeatures: 'Ed25519,Json,Sha256Password,LargePackets,CachingSha2Password,ResetConnection,SessionTrack,Tls11,Tls13,UuidToBin'
200+
unsupportedFeatures: 'CachingSha2Password,Ed25519,Json,LargePackets,QueryAttributes,ResetConnection,SessionTrack,Sha256Password,Tls11,Tls13,UuidToBin'
201201
'MySQL 5.7':
202202
image: 'mysql:5.7'
203-
unsupportedFeatures: 'Ed25519,CachingSha2Password,Tls11,Tls13,UuidToBin'
203+
unsupportedFeatures: 'CachingSha2Password,Ed25519,QueryAttributes,Tls11,Tls13,UuidToBin'
204204
'MySQL 8.0':
205205
image: 'mysql:8.0'
206206
unsupportedFeatures: 'Ed25519,Tls11,ZeroDateTime'
207207
'MariaDB 10.2':
208208
image: 'mariadb:10.2'
209-
unsupportedFeatures: 'Ed25519,Json,Sha256Password,CachingSha2Password,RoundDateTime,Tls11,UuidToBin'
209+
unsupportedFeatures: 'CachingSha2Password,Ed25519,Json,RoundDateTime,QueryAttributes,Sha256Password,Tls11,UuidToBin'
210210
'MariaDB 10.3':
211211
image: 'mariadb:10.3-bionic'
212-
unsupportedFeatures: 'Ed25519,Json,Sha256Password,CachingSha2Password,RoundDateTime,Tls11,UuidToBin'
212+
unsupportedFeatures: 'CachingSha2Password,Ed25519,Json,RoundDateTime,QueryAttributes,Sha256Password,Tls11,UuidToBin'
213213
'MariaDB 10.4':
214214
image: 'mariadb:10.4.12'
215-
unsupportedFeatures: 'Json,Sha256Password,CachingSha2Password,RoundDateTime,Tls11,UuidToBin'
215+
unsupportedFeatures: 'CachingSha2Password,Json,RoundDateTime,QueryAttributes,Sha256Password,Tls11,UuidToBin'
216216
steps:
217217
- template: '.ci/integration-tests-steps.yml'
218218
parameters:

docs/content/api/MySqlConnector/MySqlAttribute/AttributeName.md

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/content/api/MySqlConnector/MySqlAttribute/MySqlAttribute.md

Lines changed: 35 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/content/api/MySqlConnector/MySqlAttribute/Value.md

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/content/api/MySqlConnector/MySqlAttributeCollection/Add.md

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/content/api/MySqlConnector/MySqlAttributeCollection/Clear.md

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/content/api/MySqlConnector/MySqlAttributeCollection/Count.md

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)