Re: Row-level security?
From: lawpoop <lawpoop_at_gmail.com>
Date: Mon, 1 Jun 2009 08:00:45 -0700 (PDT)
Message-ID: <3788a5d4-2be2-4cc5-8757-715f35ff5e70_at_s16g2000vbp.googlegroups.com>
Date: Mon, 1 Jun 2009 08:00:45 -0700 (PDT)
Message-ID: <3788a5d4-2be2-4cc5-8757-715f35ff5e70_at_s16g2000vbp.googlegroups.com>
On May 29, 3:27 pm, Bob Badour <bbad..._at_pei.sympatico.ca> wrote:
>
> > What one would need to do, then, is create a table of user permissions
> > that has a column of the MySQL username and the client_id, or whatever
> > column you would want to use in restricting on the query. Then create
> > a view that in some place references a join to that table, and puts
> > WHERE username = USER() or whatever in the view's where clause.
>
> > Correct?
>
> This assumes you connect to the dbms with a different user name for each
> client. Do you do that?