Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pedot Nicola
semint-kprime
Commits
f49085ab
Commit
f49085ab
authored
Feb 26, 2021
by
npedot
Browse files
fix table col by name return null if not found
parent
04a3e6ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/kotlin/unibz.cs.semint.kprime/domain/ddl/Table.kt
View file @
f49085ab
...
...
@@ -58,7 +58,7 @@ class Table (): Labelled {
}
fun
colByName
(
colName
:
String
):
Column
?
{
return
columns
?.
filter
{
c-
>
c
.
name
==
colName
}
?.
first
()
return
columns
?.
filter
{
c-
>
c
.
name
==
colName
}
?.
first
OrNull
()
}
infix
fun
id
(
id
:
String
)
=
apply
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment