@@ -518,3 +518,44 @@ async fn test_grant_table_hover(test_db: PgPool) {
518518
519519 test_hover_at_cursor ( "grant_select" ,  query,  None ,  & test_db) . await ; 
520520} 
521+ 
522+ #[ sqlx:: test( migrator = "pgt_test_utils::MIGRATIONS" ) ]  
523+ async  fn  no_hover_results_over_params ( test_db :  PgPool )  { 
524+  let  setup = r#" 
525+  create table users ( 
526+  id serial primary key, 
527+  name text 
528+  ); 
529+  "# ; 
530+ 
531+  test_db. execute ( setup) . await . unwrap ( ) ; 
532+ 
533+  { 
534+  let  query = format ! ( 
535+  "select * from users where name = $n{}ame;" , 
536+  QueryWithCursorPosition :: cursor_marker( ) 
537+  ) ; 
538+  test_hover_at_cursor ( "dollar-param" ,  query,  None ,  & test_db) . await ; 
539+  } 
540+  { 
541+  let  query = format ! ( 
542+  "select * from users where name = :n{}ame;" , 
543+  QueryWithCursorPosition :: cursor_marker( ) 
544+  ) ; 
545+  test_hover_at_cursor ( "colon-param" ,  query,  None ,  & test_db) . await ; 
546+  } 
547+  { 
548+  let  query = format ! ( 
549+  "select * from users where name = @n{}ame;" , 
550+  QueryWithCursorPosition :: cursor_marker( ) 
551+  ) ; 
552+  test_hover_at_cursor ( "at-param" ,  query,  None ,  & test_db) . await ; 
553+  } 
554+  { 
555+  let  query = format ! ( 
556+  "select * from users where name = ?n{}ame;" , 
557+  QueryWithCursorPosition :: cursor_marker( ) 
558+  ) ; 
559+  test_hover_at_cursor ( "questionmark-param" ,  query,  None ,  & test_db) . await ; 
560+  } 
561+ } 
0 commit comments