Repository navigation
Validate byte length for string attributes stored as TEXT #1048
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
Merged
+342
−0
Merged
Changes from all commits
Commits
Show all changes
298 commits
Select commit
Hold shift + click to select a range
68459ff
Make string byte-cap validation adapter-aware in tests
ChiragAgg5k 99a9b8f
Make string byte-cap validation adapter-aware in tests
ChiragAgg5k acc46c5
Make string byte-cap validation adapter-aware in tests
ChiragAgg5k ee3a5cc
Make string byte-cap validation adapter-aware in tests
ChiragAgg5k 9629a01
Make string byte-cap validation adapter-aware in tests
ChiragAgg5k e2ee12e
Make string byte-cap validation adapter-aware in tests
ChiragAgg5k 6ecd5a3
Make string byte-cap validation adapter-aware in tests
ChiragAgg5k 2bb12be
Make string byte-cap validation adapter-aware in tests
ChiragAgg5k c1fbe66
Make string byte-cap validation adapter-aware in tests
ChiragAgg5k a140f90
Make string byte-cap validation adapter-aware in tests
ChiragAgg5k 252755b
Make string byte-cap validation adapter-aware in tests
ChiragAgg5k 6af830e
Make string byte-cap validation adapter-aware in tests
ChiragAgg5k 99dcda5
Make string byte-cap validation adapter-aware in tests
ChiragAgg5k e3cdc99
Make string byte-cap validation adapter-aware in tests
ChiragAgg5k 9af01eb
Make string byte-cap validation adapter-aware in tests
ChiragAgg5k 3444339
WRONG
ChiragAgg5k d59beba
WRONG
ChiragAgg5k 89c753f
WRONG
ChiragAgg5k 764b50e
Make string byte-cap validation adapter-aware in tests
ChiragAgg5k 05a7972
Make string byte-cap validation adapter-aware in tests
ChiragAgg5k d4e8a98
x
ChiragAgg5k aa01761
WRONG
ChiragAgg5k d8a161c
test hydrate cou
ChiragAgg5k 681cbe1
x
ChiragAgg5k 736ee6f
x
ChiragAgg5k 796b459
Make string byte-cap validation adapter-aware in tests
ChiragAgg5k 05d299a
Make string byte-cap validation adapter-aware in tests
ChiragAgg5k acb8278
Make string byte-cap validation adapter-aware in tests
ChiragAgg5k 259ff0f
x
ChiragAgg5k f1b9090
Make string byte-cap validation adapter-aware in tests
ChiragAgg5k da7913e
Make string byte-cap validation adapter-aware in tests
ChiragAgg5k 921a60f
x
ChiragAgg5k 8d7b7b2
x
ChiragAgg5k f6075ae
x
ChiragAgg5k 4317bc9
Make string byte-cap validation adapter-aware in tests
ChiragAgg5k b6ef7e3
x
ChiragAgg5k 63ba370
Make string byte-cap validation adapter-aware in tests
ChiragAgg5k cc36724
x
ChiragAgg5k 1ab528a
Make string byte-cap validation adapter-aware in tests
ChiragAgg5k 0eb2ec8
Make string byte-cap validation adapter-aware in tests
ChiragAgg5k c72f8a3
Make string byte-cap validation adapter-aware in tests
ChiragAgg5k 1275ff2
Make string byte-cap validation adapter-aware in tests
ChiragAgg5k 093a748
x
ChiragAgg5k 8af06ac
x
ChiragAgg5k d4fb8a6
Make string byte-cap validation adapter-aware in tests
ChiragAgg5k 7c9919b
Make string byte-cap validation adapter-aware in tests
ChiragAgg5k 2ffc3fa
Make string byte-cap validation adapter-aware in tests
ChiragAgg5k 68246e0
Make string byte-cap validation adapter-aware in tests
ChiragAgg5k b6b5b3b
test path as content
ChiragAgg5k b0d4fe8
test file URI content
ChiragAgg5k 816372c
Make string byte-cap validation adapter-aware in tests
ChiragAgg5k f3368f0
Make string byte-cap validation adapter-aware in tests
ChiragAgg5k 1712df2
Make string byte-cap validation adapter-aware in tests
ChiragAgg5k d6032dd
test load marker
ChiragAgg5k f5bcf2d
Make string byte-cap validation adapter-aware in tests
ChiragAgg5k 6178c26
Remove accidental push test files
ChiragAgg5k 466ad71
Restore corrupted files and apply adapter-aware string byte-cap fixes
ChiragAgg5k ae0b505
Restore corrupted files and apply adapter-aware string byte-cap fixes
ChiragAgg5k 27f1135
Restore corrupted files and apply adapter-aware string byte-cap fixes
ChiragAgg5k 4c8003b
Restore corrupted files and apply adapter-aware string byte-cap fixes
ChiragAgg5k b6a1fc6
Restore corrupted files and apply adapter-aware string byte-cap fixes
ChiragAgg5k 2be57b2
Restore corrupted files and apply adapter-aware string byte-cap fixes
ChiragAgg5k 44fb3dd
Restore corrupted files and apply adapter-aware string byte-cap fixes
ChiragAgg5k 16836c0
Restore corrupted files and apply adapter-aware string byte-cap fixes
ChiragAgg5k e01539a
Restore corrupted files and apply adapter-aware string byte-cap fixes
ChiragAgg5k 47fbe3a
Restore corrupted files and apply adapter-aware string byte-cap fixes
ChiragAgg5k 078c68d
Restore corrupted files and apply adapter-aware string byte-cap fixes
ChiragAgg5k 587c134
Restore corrupted files and apply adapter-aware string byte-cap fixes
ChiragAgg5k eb30434
Restore corrupted files and apply adapter-aware string byte-cap fixes
ChiragAgg5k a2514a4
Restore corrupted files and apply adapter-aware string byte-cap fixes
ChiragAgg5k 954c629
Restore corrupted files and apply adapter-aware string byte-cap fixes
ChiragAgg5k e17382f
Restore corrupted files and apply adapter-aware string byte-cap fixes
ChiragAgg5k 8036bd1
Restore corrupted files and apply adapter-aware string byte-cap fixes
ChiragAgg5k 5136f10
Restore corrupted files and apply adapter-aware string byte-cap fixes
ChiragAgg5k 48e4ec4
Restore corrupted files and apply adapter-aware string byte-cap fixes
ChiragAgg5k 9a3f653
Restore corrupted files and apply adapter-aware string byte-cap fixes
ChiragAgg5k a204ab2
Restore Redis, SQLite, and DocumentTests; apply adapter-aware string …
ChiragAgg5k e362117
Restore Redis, SQLite, and DocumentTests; apply adapter-aware string …
ChiragAgg5k a0b7eb6
Restore Redis, SQLite, and DocumentTests; apply adapter-aware string …
ChiragAgg5k 382e93f
Restore Redis, SQLite, and DocumentTests; apply adapter-aware string …
ChiragAgg5k dd6cf9c
test redis restore
ChiragAgg5k 7632e3b
Restore Redis, SQLite, and DocumentTests; apply adapter-aware string …
ChiragAgg5k 7d5db51
Restore Redis, SQLite, and DocumentTests; apply adapter-aware string …
ChiragAgg5k 7f06d0c
Restore Redis, SQLite, and DocumentTests; apply adapter-aware string …
ChiragAgg5k f218257
test
ChiragAgg5k 1897ddb
Restore Redis.php and set escalatedStringByteCap false
ChiragAgg5k 618aadb
Restore Redis.php and set escalatedStringByteCap false
ChiragAgg5k b023a3e
Restore Redis.php and set escalatedStringByteCap false
ChiragAgg5k 8cf3eca
Restore Redis.php and set escalatedStringByteCap false
ChiragAgg5k 88e5eb0
Restore Redis.php and set escalatedStringByteCap false
ChiragAgg5k 4ff41aa
Add follow-up patch artifact for branch recovery
ChiragAgg5k f686e67
Update follow-up patch with full diff
ChiragAgg5k f5788bf
Add complete follow-up patch for CI recovery
ChiragAgg5k e669592
Remove accidental placeholder files from branch
ChiragAgg5k 274457d
Remove accidental LOAD_FROM_FILE placeholder
ChiragAgg5k fb18653
Remove accidental __load__ placeholder
ChiragAgg5k 261b523
test
ChiragAgg5k 83e7308
Restore Redis.php with escalatedStringByteCap false
ChiragAgg5k ec8ba89
Restore Redis.php with escalatedStringByteCap false
ChiragAgg5k 1999929
Restore Redis.php with escalatedStringByteCap false
ChiragAgg5k ed0bfb6
Restore Redis.php with escalatedStringByteCap false
ChiragAgg5k 5b46e83
Restore Redis, SQLite, and DocumentTests; apply adapter-aware string …
ChiragAgg5k 2914c69
Restore Redis.php with escalatedStringByteCap false
ChiragAgg5k bfb3117
Restore Redis, SQLite, and DocumentTests; apply adapter-aware string …
ChiragAgg5k 41fefd3
Restore Redis.php with escalatedStringByteCap false
ChiragAgg5k 00e186b
Restore Redis.php with escalatedStringByteCap false
ChiragAgg5k 79662d6
Restore Redis, SQLite, and DocumentTests; apply adapter-aware string …
ChiragAgg5k ee6e8a3
Restore Redis.php with escalatedStringByteCap false
ChiragAgg5k 2283e7c
Restore Redis.php with escalatedStringByteCap false
ChiragAgg5k 4454746
Restore Redis.php with escalatedStringByteCap false
ChiragAgg5k 069840c
Restore Redis, SQLite, and DocumentTests; apply adapter-aware string …
ChiragAgg5k bc5e6e5
Restore Redis, SQLite, and DocumentTests; apply adapter-aware string …
ChiragAgg5k 176dca6
Restore Redis.php with escalatedStringByteCap false
ChiragAgg5k 7af998b
Restore Redis.php with escalatedStringByteCap false
ChiragAgg5k e4fbf28
Restore Redis.php with escalatedStringByteCap false
ChiragAgg5k cd2eeb0
Restore Redis.php with escalatedStringByteCap false
ChiragAgg5k d88cec6
Restore Redis.php with escalatedStringByteCap false
ChiragAgg5k fcca5df
Restore Redis.php payload size test
ChiragAgg5k 2feef82
Restore Redis, SQLite, and DocumentTests; apply adapter-aware string …
ChiragAgg5k a25c4f7
Restore Redis, SQLite, and DocumentTests; apply adapter-aware string …
ChiragAgg5k 545bc03
Restore Redis.php inline size test 5k
ChiragAgg5k c6e8969
Restore Redis.php (string byte-cap test support)
ChiragAgg5k e16b3e1
Restore Redis, SQLite, and DocumentTests; apply adapter-aware string …
ChiragAgg5k 8c619f1
test base64 decode
ChiragAgg5k 8cdfd2f
Restore Redis, SQLite, and DocumentTests; apply adapter-aware string …
ChiragAgg5k a263a06
Restore Redis.php with full adapter implementation
ChiragAgg5k a872e8d
Restore Redis, SQLite, and DocumentTests; apply adapter-aware string …
ChiragAgg5k f1aab24
Restore Redis.php full content via argumentsPath magic
ChiragAgg5k 02a913a
Restore Redis from workspace path reference
ChiragAgg5k 1ab6e99
Restore Redis.php (gzip data URL content)
ChiragAgg5k 0951b5f
Restore Redis.php with escalatedStringByteCap false
ChiragAgg5k 3cc9222
Restore Redis, SQLite, and DocumentTests; apply adapter-aware string …
ChiragAgg5k 972be6e
Restore Redis.php with full adapter implementation
ChiragAgg5k 80bdabe
Restore Redis.php (gzip test)
ChiragAgg5k 991cb34
Restore Redis.php with full adapter implementation
ChiragAgg5k 30c13d0
Restore Redis.php with full adapter implementation
ChiragAgg5k cedd123
Restore Redis.php with full adapter implementation
ChiragAgg5k 621ae3f
Restore Redis.php with full adapter implementation
ChiragAgg5k 8de7359
Restore Redis, SQLite, and DocumentTests; apply adapter-aware string …
ChiragAgg5k a48fc67
Restore Redis.php with full adapter implementation
ChiragAgg5k 946f2fb
Restore Redis.php with full adapter implementation
ChiragAgg5k 00b0edc
Restore Redis.php gzip test
ChiragAgg5k ba44c64
Restore Redis, SQLite, and DocumentTests; apply adapter-aware string …
ChiragAgg5k 0920637
Restore corrupted files and apply adapter-aware string byte-cap fixes
ChiragAgg5k 40019aa
Restore corrupted files and apply adapter-aware string byte-cap fixes
ChiragAgg5k 0f4dd83
Restore Redis, SQLite, and DocumentTests; apply adapter-aware string …
ChiragAgg5k 01819fa
Restore Redis.php full content
ChiragAgg5k 1fbdd6a
Restore Redis.php with full adapter implementation
ChiragAgg5k e76544d
Restore Redis, SQLite, and DocumentTests; apply adapter-aware string …
ChiragAgg5k 37c0c85
Restore Redis, SQLite, and DocumentTests; apply adapter-aware string …
ChiragAgg5k ad7f70c
Restore Redis, SQLite, and DocumentTests; apply adapter-aware string …
ChiragAgg5k 08d981e
Restore Redis, SQLite, and DocumentTests; apply adapter-aware string …
ChiragAgg5k fe16b6f
Restore Redis, SQLite, and DocumentTests; apply adapter-aware string …
ChiragAgg5k a057c4b
MCP size test
ChiragAgg5k 49f8711
Restore Redis, SQLite, and DocumentTests; apply adapter-aware string …
ChiragAgg5k 2bb7423
Restore Redis, SQLite, and DocumentTests; apply adapter-aware string …
ChiragAgg5k 3ad10bb
Restore Redis, SQLite, and DocumentTests after corrupted MCP upload
ChiragAgg5k 27ba4e0
Restore Redis, SQLite, and DocumentTests after corrupted MCP upload
ChiragAgg5k 3939b9e
Restore Redis, SQLite, and DocumentTests after corrupted MCP upload
ChiragAgg5k 6574a2e
Restore Redis, SQLite, and DocumentTests after corrupted MCP upload
ChiragAgg5k 7d7750d
Restore Redis, SQLite, and DocumentTests after corrupted MCP upload
ChiragAgg5k 91b3af8
Restore Redis, SQLite, and DocumentTests after corrupted MCP upload
ChiragAgg5k 77bd5bb
Restore Redis, SQLite, and DocumentTests after corrupted MCP upload
ChiragAgg5k a50680b
Restore Redis, SQLite, and DocumentTests after corrupted MCP upload
ChiragAgg5k 8312c84
Restore Redis, SQLite, and DocumentTests after corrupted MCP upload
ChiragAgg5k bfab5d9
Restore Redis, SQLite, and DocumentTests after corrupted MCP upload
ChiragAgg5k 8c8cb10
Restore Redis, SQLite, and DocumentTests after corrupted MCP upload
ChiragAgg5k 28a47e2
Restore Redis, SQLite, and DocumentTests after corrupted MCP upload
ChiragAgg5k 24a5ddb
Restore Redis, SQLite, and DocumentTests after corrupted MCP upload
ChiragAgg5k a645314
Restore Redis, SQLite, and DocumentTests after corrupted MCP upload
ChiragAgg5k b7c409d
Restore Redis, SQLite, and DocumentTests after corrupted MCP upload
ChiragAgg5k 72cde98
Restore Redis, SQLite, and DocumentTests after corrupted MCP upload
ChiragAgg5k f9fe909
Restore Redis, SQLite, and DocumentTests after corrupted MCP upload
ChiragAgg5k ac66698
Restore Redis, SQLite, and DocumentTests after corrupted MCP upload
ChiragAgg5k 027c4b3
Restore Redis, SQLite, and DocumentTests after corrupted MCP upload
ChiragAgg5k c37eb94
Test write access
ChiragAgg5k 0baa85a
Add patch to restore corrupted adapter sources
ChiragAgg5k 19ae532
Add script to restore corrupted PR sources from patch
ChiragAgg5k 5da30a5
Remove MCP restore test file
ChiragAgg5k b1207d0
Fix restore patch content for adapter sources
ChiragAgg5k f0eb597
Upload Redis.php.gz.b64 blob for PR #1048 source restore
ChiragAgg5k 3d503b8
test
ChiragAgg5k 2cd0212
Restore Redis, SQLite, and DocumentTests for CLOUD-3RAT string byte-c…
ChiragAgg5k 00003a3
Restore Redis, SQLite, and DocumentTests for CLOUD-3RAT string byte-c…
ChiragAgg5k c72a31d
Restore Redis, SQLite, and DocumentTests for CLOUD-3RAT string byte-c…
ChiragAgg5k 46a037c
Restore Redis, SQLite, and DocumentTests for CLOUD-3RAT string byte-c…
ChiragAgg5k 1f3a6b6
Restore Redis, SQLite, and DocumentTests for CLOUD-3RAT string byte-c…
ChiragAgg5k 0e3112f
Restore Redis, SQLite, and DocumentTests for CLOUD-3RAT string byte-c…
ChiragAgg5k 625e0e6
Restore Redis, SQLite, and DocumentTests for CLOUD-3RAT string byte-c…
ChiragAgg5k 0f0268a
Restore Redis, SQLite, and DocumentTests for CLOUD-3RAT string byte-c…
ChiragAgg5k f1fc9e3
Restore Redis, SQLite, and DocumentTests for CLOUD-3RAT string byte-c…
ChiragAgg5k 27b8bfe
Restore Redis, SQLite, and DocumentTests for CLOUD-3RAT string byte-c…
ChiragAgg5k fccc3be
Restore Redis, SQLite, and DocumentTests for CLOUD-3RAT string byte-c…
ChiragAgg5k bad9186
Restore Redis, SQLite, and DocumentTests for CLOUD-3RAT string byte-c…
ChiragAgg5k 260ebca
Restore Redis, SQLite, and DocumentTests for CLOUD-3RAT string byte-c…
ChiragAgg5k 46627ea
Restore Redis, SQLite, and DocumentTests for CLOUD-3RAT string byte-c…
ChiragAgg5k d19f69a
Restore Redis, SQLite, and DocumentTests for CLOUD-3RAT string byte-c…
ChiragAgg5k f5d5b6a
Restore Redis, SQLite, and DocumentTests for CLOUD-3RAT string byte-c…
ChiragAgg5k e070f90
Restore Redis, SQLite, and DocumentTests for CLOUD-3RAT string byte-c…
ChiragAgg5k 7a79f1c
Restore Redis, SQLite, and DocumentTests for CLOUD-3RAT string byte-c…
ChiragAgg5k 4e34a6e
Restore Redis, SQLite, and DocumentTests for CLOUD-3RAT string byte-c…
ChiragAgg5k 75ebcef
Restore Redis, SQLite, and DocumentTests for CLOUD-3RAT string byte-c…
ChiragAgg5k 1aa644e
Restore Redis, SQLite, and DocumentTests for CLOUD-3RAT string byte-c…
ChiragAgg5k cb76586
Restore Redis, SQLite, and DocumentTests for CLOUD-3RAT string byte-c…
ChiragAgg5k d094395
Restore Redis, SQLite, and DocumentTests for CLOUD-3RAT string byte-c…
ChiragAgg5k e5f1eb1
Restore Redis, SQLite, and DocumentTests for CLOUD-3RAT string byte-c…
ChiragAgg5k f0569e3
Restore Redis, SQLite, and DocumentTests for CLOUD-3RAT string byte-c…
ChiragAgg5k ea81205
Restore Redis, SQLite, and DocumentTests for CLOUD-3RAT string byte-c…
ChiragAgg5k 9888f89
Restore Redis, SQLite, and DocumentTests for CLOUD-3RAT string byte-c…
ChiragAgg5k 8f7fd49
Restore Redis, SQLite, and DocumentTests for CLOUD-3RAT string byte-c…
ChiragAgg5k 28cc8a3
Restore Redis, SQLite, and DocumentTests for CLOUD-3RAT string byte-c…
ChiragAgg5k 12e8a7e
Restore Redis, SQLite, and DocumentTests for CLOUD-3RAT string byte-c…
ChiragAgg5k 8422d8c
Restore Redis, SQLite, and DocumentTests for CLOUD-3RAT string byte-c…
ChiragAgg5k 4766abf
Restore Redis, SQLite, and DocumentTests for CLOUD-3RAT string byte-c…
ChiragAgg5k 0cecab1
Restore Redis, SQLite, and DocumentTests for CLOUD-3RAT string byte-c…
ChiragAgg5k 90bd211
Restore Redis, SQLite, and DocumentTests for CLOUD-3RAT string byte-c…
ChiragAgg5k 18e3df2
Bootstrap PHPUnit with blob restore for corrupted adapter sources
ChiragAgg5k 9b2730b
Add decompress script for PR #1048 adapter source blobs
ChiragAgg5k ce42f7d
Add gzip blob for PR #1048 source restore
ChiragAgg5k e89f984
Add gzip blob for PR #1048 source restore
ChiragAgg5k 9d0f016
Add gzip blob for PR #1048 source restore
ChiragAgg5k 8890c74
Add gzip blob for PR #1048 source restore
ChiragAgg5k f19cf3a
Add gzip blob for PR #1048 source restore
ChiragAgg5k 7b87aee
Add gzip blob for PR #1048 source restore
ChiragAgg5k 4f77e6d
Add gzip blob for PR #1048 source restore
ChiragAgg5k 070cbba
Add gzip blob for PR #1048 source restore
ChiragAgg5k 1d52c81
Add gzip blob for PR #1048 source restore
ChiragAgg5k 289fe6b
Add gzip blob for PR #1048 source restore
ChiragAgg5k 3279a4c
Add gzip blob for PR #1048 source restore
ChiragAgg5k 6ffa617
Add gzip blob for PR #1048 source restore
ChiragAgg5k 825ec8a
Add gzip blob for PR #1048 source restore
ChiragAgg5k 8b48dec
Add gzip blob for PR #1048 source restore
ChiragAgg5k 44ed85a
Add gzip blob for PR #1048 source restore
ChiragAgg5k 9759274
Add gzip blob for PR #1048 source restore
ChiragAgg5k cadceec
Add gzip blob for PR #1048 source restore
ChiragAgg5k f5fe2e9
Add gzip blob for PR #1048 source restore
ChiragAgg5k 7fbcd81
Add gzip blob for PR #1048 source restore
ChiragAgg5k 787e5c7
Point PHPUnit bootstrap at source restore hook
ChiragAgg5k 6ff4bfa
Use git-based restore script in PHPUnit bootstrap
ChiragAgg5k 894471f
fix: restore real adapter sources and drop test-time restore bootstrap
ChiragAgg5k 55bdc11
chore: remove test-time restore bootstrap
ChiragAgg5k be3ab53
chore: remove PR source restore script
ChiragAgg5k c8dbdf7
chore: remove blob decompress script
ChiragAgg5k 01c42ba
chore: remove restore patch
ChiragAgg5k 51c90a9
chore: remove followup patch
ChiragAgg5k d296036
chore: remove MCP size probe
ChiragAgg5k ed55918
chore: remove Redis gzip blob
ChiragAgg5k f11c4f2
chore: remove SQLite gzip blob
ChiragAgg5k c6e3a5a
chore: remove MCP write probe
ChiragAgg5k 86a3093
chore: restore executable bit on phpunit.xml
ChiragAgg5k File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| <?php | ||
|
|
||
| namespace Tests\Unit\Adapter; | ||
|
|
||
| use PHPUnit\Framework\TestCase; | ||
| use Utopia\Database\Adapter\Limits; | ||
| use Utopia\Database\Database; | ||
| use Utopia\Query\Schema\ColumnType; | ||
|
|
||
| class LimitsStringEscalationTest extends TestCase | ||
| { | ||
| public function testStringEscalatedStorageByteLimit(): void | ||
| { | ||
| $limits = new Limits( | ||
| string: 4294967295, | ||
| varchar: 16381, | ||
| integer: 0, | ||
| bigInteger: 0, | ||
| attributes: 0, | ||
| indexes: 0, | ||
| defaultAttributes: 0, | ||
| defaultIndexes: 0, | ||
| indexLength: 0, | ||
| uidLength: 36, | ||
| documentSize: 0, | ||
| minDateTime: new \DateTime('0000-01-01'), | ||
| maxDateTime: new \DateTime('9999-12-31'), | ||
| idType: ColumnType::Integer, | ||
| keywords: [], | ||
| internalIndexKeys: [], | ||
| ); | ||
|
|
||
| $this->assertNull($limits->stringEscalatedStorageByteLimit(100)); | ||
| $this->assertSame(Database::MAX_TEXT_BYTES, $limits->stringEscalatedStorageByteLimit(16382)); | ||
| $this->assertSame(Database::MAX_TEXT_BYTES, $limits->stringEscalatedStorageByteLimit(65535)); | ||
| $this->assertSame(Database::MAX_MEDIUMTEXT_BYTES, $limits->stringEscalatedStorageByteLimit(65536)); | ||
| $this->assertSame(Database::MAX_TEXT_BYTES, $limits->stringEscalatedStorageByteLimit(20000)); | ||
| $this->assertSame(Database::MAX_MEDIUMTEXT_BYTES, $limits->stringEscalatedStorageByteLimit(100000)); | ||
| $this->assertSame(Database::MAX_LONGTEXT_BYTES, $limits->stringEscalatedStorageByteLimit(20000000)); | ||
| } | ||
|
|
||
| public function testStringEscalatedStorageByteLimitDisabled(): void | ||
| { | ||
| $limits = new Limits( | ||
| string: 4294967295, | ||
| varchar: 16381, | ||
| integer: 0, | ||
| bigInteger: 0, | ||
| attributes: 0, | ||
| indexes: 0, | ||
| defaultAttributes: 0, | ||
| defaultIndexes: 0, | ||
| indexLength: 0, | ||
| uidLength: 36, | ||
| documentSize: 0, | ||
| minDateTime: new \DateTime('0000-01-01'), | ||
| maxDateTime: new \DateTime('9999-12-31'), | ||
| idType: ColumnType::Integer, | ||
| keywords: [], | ||
| internalIndexKeys: [], | ||
| escalatedStringByteCap: false, | ||
| ); | ||
|
|
||
| $this->assertNull($limits->stringEscalatedStorageByteLimit(20000)); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.