From 646ce1ac3f01069909a1b881d0b7fbdd1039c0e9 Mon Sep 17 00:00:00 2001 From: Averi Kitsch Date: Thu, 2 Oct 2025 12:02:49 -0700 Subject: [PATCH 1/2] feat: add full table name to context file --- CLOUD-SQL-MYSQL.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CLOUD-SQL-MYSQL.md b/CLOUD-SQL-MYSQL.md index 991b0ff..d9d0cc0 100644 --- a/CLOUD-SQL-MYSQL.md +++ b/CLOUD-SQL-MYSQL.md @@ -81,4 +81,9 @@ Users may have set project environment variables: * `CLOUD_SQL_MYSQL_DATABASE`: The name of the database. Instead of prompting the user for these values for specific tool calls, prompt the user to verify reuse a specific value. -Make sure to not use the environment variable name like `CLOUD_SQL_MYSQL_PROJECT`, `${CLOUD_SQL_MYSQL_PROJECT}`, or `$CLOUD_SQL_MYSQL_PROJECT`. The value can be found by using command: `echo $CLOUD_SQL_MYSQL_PROJECT`. \ No newline at end of file +Make sure to not use the environment variable name like `CLOUD_SQL_MYSQL_PROJECT`, `${CLOUD_SQL_MYSQL_PROJECT}`, or `$CLOUD_SQL_MYSQL_PROJECT`. The value can be found by using command: `echo $CLOUD_SQL_MYSQL_PROJECT`. + +## Use Full Table Name Format "DATABASE_NAME.TABLE_NAME" + +**ALWAYS** use the full table name format, `DATABASE_NAME.TABLE_NAME` in the generated SQL when using the `execute_sql` or `cloud_sql_sqlserver__execute_sql` tool. +* Use command `echo $CLOUD_SQL_MYSQL_DATABASE` to get the current database value. From f7d74c0455aeee8cb32cb4725d6f46d1ed7e6cde Mon Sep 17 00:00:00 2001 From: Averi Kitsch Date: Thu, 2 Oct 2025 12:06:49 -0700 Subject: [PATCH 2/2] Update CLOUD-SQL-MYSQL.md --- CLOUD-SQL-MYSQL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CLOUD-SQL-MYSQL.md b/CLOUD-SQL-MYSQL.md index d9d0cc0..980deaf 100644 --- a/CLOUD-SQL-MYSQL.md +++ b/CLOUD-SQL-MYSQL.md @@ -85,5 +85,5 @@ Make sure to not use the environment variable name like `CLOUD_SQL_MYSQL_PROJECT ## Use Full Table Name Format "DATABASE_NAME.TABLE_NAME" -**ALWAYS** use the full table name format, `DATABASE_NAME.TABLE_NAME` in the generated SQL when using the `execute_sql` or `cloud_sql_sqlserver__execute_sql` tool. +**ALWAYS** use the full table name format, `DATABASE_NAME.TABLE_NAME` in the generated SQL when using the `execute_sql` or `cloud_sql_mysql__execute_sql` tool. * Use command `echo $CLOUD_SQL_MYSQL_DATABASE` to get the current database value.