From 16e49d27cba6bfa903872fc97e6e6119f5f58b5e Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Tue, 25 Mar 2025 06:29:41 +0100 Subject: [PATCH] AdminerSqlGemini: Return more columns by default --- plugins/sql-gemini.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/sql-gemini.php b/plugins/sql-gemini.php index d1e5b0c8..48e8af93 100644 --- a/plugins/sql-gemini.php +++ b/plugins/sql-gemini.php @@ -28,7 +28,8 @@ class AdminerSqlGemini { foreach (Adminer\tables_list() as $table => $type) { $prompt .= Adminer\create_sql($table, false, "CREATE") . ";\n\n"; } - $prompt .= "Give me this SQL query and nothing else:\n\n$_POST[gemini]"; + $prompt .= "Prefer returning more columns including primary key.\n\n"; + $prompt .= "Give me this SQL query and nothing else:\n\n$_POST[gemini]\n\n"; //~ echo $prompt; exit; $context = stream_context_create(array("http" => array( "method" => "POST", -- 2.39.5