Can Weinreb amides be used to form 1,3 dicarbonyl compounds?

Weinreb amides are useful in reducing acid chlorides (and esters) to form ketones due to the fact that the more reactive keto group is unmasked only after treatment with acid and water, which destroys the reducing agent. One example I have been given of use of Weinreb amides is the following:


[![enter image description here](https://i.stack.imgur.com/Pzz5E.png)](https://i.stack.imgur.com/Pzz5E.png)


We see here that the 1,3 dicarbonyl compound is formed. This implies that under these conditions, the ester lithium enolate does not attack the ester moiety in the Weinreb intermediate, presumably because it is not reactive enough. Is this a general case? If the ester was, say, replaced by a ketone, would we still form the 1,3 diketone species or would we have attack of this carbonyl centre to form an alcohol?


