Skip to content

Commit

Permalink
Merge pull request #41 from kalaiyarasiganeshalingam/query
Browse files Browse the repository at this point in the history
Update diagnostics'  messages
  • Loading branch information
kalaiyarasiganeshalingam authored Sep 5, 2023
2 parents 424456a + efff43d commit 2ae8448
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
6 changes: 3 additions & 3 deletions ballerina/Ballerina.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ path = "../native/build/libs/persist.sql-native-1.2.0-SNAPSHOT.jar"
groupId = "io.ballerina.stdlib"
artifactId = "persist-native"
version = "1.2.0"
path = "./lib/persist-native-1.2.0-20230810-161400-f232e8d.jar"
path = "./lib/persist-native-1.2.0-20230831-142100-b7b968f.jar"

[[platform.java17.dependency]]
groupId = "io.ballerina.stdlib"
artifactId = "sql-native"
version = "1.10.1-20230731-200200-47f1bc5"
path = "./lib/sql-native-1.10.1-20230731-200200-47f1bc5.jar"
version = "1.11.0-20230831-224400-d2491ed"
path = "./lib/sql-native-1.11.0-20230831-224400-d2491ed.jar"
2 changes: 1 addition & 1 deletion ballerina/CompilerPlugin.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ class = "io.ballerina.stdlib.persist.sql.compiler.PersistSqlCompilerPlugin"
path = "../compiler-plugin/build/libs/persist.sql-compiler-plugin-1.2.0-SNAPSHOT.jar"

[[dependency]]
path = "./lib/persist-native-1.2.0-20230810-161400-f232e8d.jar"
path = "./lib/persist-native-1.2.0-20230831-142100-b7b968f.jar"
6 changes: 5 additions & 1 deletion ballerina/Dependencies.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

[ballerina]
dependencies-toml-version = "2"
distribution-version = "2201.8.0-20230726-145300-b2bdf796"
distribution-version = "2201.8.0-20230830-220400-8a7556d8"

[[package]]
org = "ballerina"
Expand Down Expand Up @@ -100,6 +100,9 @@ dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.value"}
]
modules = [
{org = "ballerina", packageName = "io", moduleName = "io"}
]

[[package]]
org = "ballerina"
Expand Down Expand Up @@ -436,6 +439,7 @@ org = "ballerinax"
name = "persist.sql"
version = "1.2.0"
dependencies = [
{org = "ballerina", name = "io"},
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "log"},
{org = "ballerina", name = "persist"},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@ public enum DiagnosticsCodes {
ERROR),
PERSIST_SQL_203("PERSIST_203", "A persist remote function call does not support anything " +
"other than a target type argument", ERROR),
PERSIST_SQL_204("PERSIST_204", "''group by'' clause cannot be defined before ''{0}'' clause",
PERSIST_SQL_204("PERSIST_204", "''group by'' clause cannot be defined before the ''{0}'' clause",
ERROR),
PERSIST_SQL_205("PERSIST_205", "''limit'' clause cannot be defined by the entity's field",
PERSIST_SQL_205("PERSIST_205", "''limit'' clause cannot be defined by the field of the entity",
ERROR),
PERSIST_SQL_206("PERSIST_206", "''{0}'' clause cannot be defined by the entity's array field",

PERSIST_SQL_206("PERSIST_206", "the ''{0}'' clause cannot be defined by the array field " +
"of the entity",
ERROR);

private final String code;
Expand Down

0 comments on commit 2ae8448

Please sign in to comment.