I've updated the source code this morning adding a more general control
about "saving to db capability" of the provider, so yes, simply implement
that method and add that one
virtual bool isSavingStyleToDBSupported(){ return true; }

Emilio Loi - loi@faunalia.it


2013/4/12 Nathan Woodrow <notifications@github.com>

> In src/providers/postgres/qgspostgresprovider.cpp:
>
> > @@ -3223,3 +3223,115 @@ QGISEXTERN bool deleteLayer( const QString& uri, QString& errCause )
> >    conn->disconnect();
> >    return true;
> >  }
> > +
> > +QGISEXTERN bool saveStyle( const QString& uri, const QString& qmlStyle, const QString& sldStyle,
>
> If we wanted to add support for this to the MS SQL driver, one would just
> need to add this method correct?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/qgis/Quantum-GIS/pull/522/files#r3779946>
> .
>