Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tables
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
grifart libs
tables
Commits
453db14d
Verified
Commit
453db14d
authored
2 years ago
by
Jan Kuchař
Committed by
Jiří Pudil
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fixed TestFixtures
parent
e380d1be
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!40
CompositeType: add explicit type cast to support composite values in WHERE clause
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/Fixtures/TestFixtures.php
+2
-1
2 additions, 1 deletion
tests/Fixtures/TestFixtures.php
with
2 additions
and
1 deletion
tests/Fixtures/TestFixtures.php
+
2
−
1
View file @
453db14d
...
...
@@ -5,6 +5,7 @@ declare(strict_types=1);
namespace
Grifart\Tables\Tests\Fixtures
;
use
Dibi\Connection
;
use
Grifart\Tables\NamedIdentifier
;
use
Grifart\Tables\TableManager
;
use
Grifart\Tables\TypeResolver
;
use
Grifart\Tables\Types\ArrayType
;
...
...
@@ -26,7 +27,7 @@ final class TestFixtures
$typeResolver
->
addResolutionByLocation
(
'public.test.id'
,
new
UuidType
());
$typeResolver
->
addResolutionByLocation
(
'public.test.score'
,
new
IntType
());
$typeResolver
->
addResolutionByLocation
(
'public.package.version'
,
new
TupleVersionType
());
$typeResolver
->
addResolutionByLocation
(
'public.package.previousVersions'
,
ArrayType
::
of
(
new
VersionType
()));
$typeResolver
->
addResolutionByLocation
(
'public.package.previousVersions'
,
ArrayType
::
of
(
new
NamedIdentifier
(
'public'
,
'packageVersion'
),
new
VersionType
()));
return
$typeResolver
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment