Postgres: Regex support foreign characters (#5598)

* Fix issue #5293

* Fix issue #5293

* add test

* Revert "add test"

This reverts commit 38b32a627a9d2c9a9b852b48194f173d8b7254f3.

* fix conflicts

* use native package
This commit is contained in:
Jeff Gu Kang
2019-06-25 06:13:34 +09:00
committed by Diamond Lewis
parent b178d5ca6a
commit ad7fc48c97
3 changed files with 577 additions and 1072 deletions

View File

@@ -4638,6 +4638,19 @@ describe('Parse.Query testing', () => {
equal(results[0].get('array'), data2);
});
it('can query regex with unicode', async () => {
const object = new TestObject();
object.set('field', 'autoöo');
await object.save();
const query = new Parse.Query(TestObject);
query.contains('field', 'autoöo');
const results = await query.find();
expect(results.length).toBe(1);
expect(results[0].get('field')).toBe('autoöo');
});
it('can update mixed array more than 100 elements', async () => {
const array = [0, 1.1, 'hello world', { foo: 'bar' }, null];
const obj = new TestObject({ array });