Skip to content

Commit d6d69c0

Browse files
authored
Fix pgsql dialect string (#2)
* Fix pgsql dialect string * Fix postgres dialect value
1 parent 8a1b62f commit d6d69c0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Update your personal preferences in Claude Desktop settings to request that gene
3636
- Validates SQL query syntax and returns any errors
3737
- Input:
3838
- sql (string): SQL query to analyze
39-
- dialect (string, optional): SQL dialect (e.g., 'mysql', 'postgresql')
39+
- dialect (string, optional): SQL dialect (e.g., 'mysql', 'postgres')
4040
- Returns: ParseResult containing:
4141
- is_valid (boolean): Whether the SQL is valid
4242
- message (string): Error message or "No syntax errors"

src/mcp_server_sql_analyzer/server.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def lint_sql(sql: str, dialect: str = "") -> ParseResult:
9393
9494
Args:
9595
sql: SQL query to analyze
96-
dialect: Optional SQL dialect (e.g., 'mysql', 'postgresql')
96+
dialect: Optional SQL dialect (e.g., 'mysql', 'postgres')
9797
9898
Returns:
9999
error message or "No syntax errors" if parsing succeeds
@@ -160,7 +160,7 @@ def get_all_table_references(
160160
161161
Args:
162162
sql: SQL statement to analyze
163-
dialect: Optional SQL dialect (e.g., 'mysql', 'postgresql')
163+
dialect: Optional SQL dialect (e.g., 'mysql', 'postgres')
164164
Returns:
165165
JSON object containing tables with catalog, database, and alias attributes
166166
CTEs are returned as "cte" type
@@ -217,7 +217,7 @@ def get_all_column_references(
217217
218218
Args:
219219
sql: SQL statement to analyze
220-
dialect: Optional SQL dialect (e.g., 'mysql', 'postgresql')
220+
dialect: Optional SQL dialect (e.g., 'mysql', 'postgres')
221221
Returns:
222222
JSON object containing column references with table context and any errors
223223
"""

0 commit comments

Comments
 (0)