© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•6mo ago•
43 replies
ytomtom

`update().select().limit(1).single()` behavior not consistent

Hi we have two supabase projects. One's on postgres v15.1.1.73, the other is on v17.4.1.069.

on the v17, this works, on v15 it doesn't
 await supabase
    .from('Table')
    .update({
      foo: true,
      bar: true,
      baz: true
    })
    .eq('id', userID)
    .select('*')
    .limit(1)
    .single();
 await supabase
    .from('Table')
    .update({
      foo: true,
      bar: true,
      baz: true
    })
    .eq('id', userID)
    .select('*')
    .limit(1)
    .single();


to get it to work on v15, we had to remove the limit(1)

 await supabase
    .from('Table')
    .update({
      foo: true,
      bar: true,
      baz: true
    })
    .eq('id', userID)
    .select('*')
    .single();
 await supabase
    .from('Table')
    .update({
      foo: true,
      bar: true,
      baz: true
    })
    .eq('id', userID)
    .select('*')
    .single();


Is this a postgrest version issue?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

number of rows limit in a single table
SupabaseSSupabase / help-and-questions
6mo ago
Limit select for each entry in "in"
SupabaseSSupabase / help-and-questions
3y ago
Limit on foreign table to filter select query?
SupabaseSSupabase / help-and-questions
4y ago
Constraining select based on update RLS
SupabaseSSupabase / help-and-questions
4y ago