Question: I was just supposing that I could put a `set query` within `WITH` statement in SQL Server 2008.

So I wrote a few lines of code:

```
with temp as   
(
    SELECT row_number() OVER (ORDER BY [ShareItems].ItemId) AS Row, ItemId FROM [ShareItems]
)
set @row = ItemId //<---error

```

but I am getting an error above, but in case of `select` statement using `WITH` keyword, there was no error???

```
with temp as   
(
    SELECT 
        row_number() OVER (ORDER BY [ShareItems].ItemId) AS Row, ItemId 
    FROM [ShareItems]
)
SELECT ItemId 
FROM temp //<--- OK (no error)

```

Any suggestion ?

Answer: 
You can use 

```
CGContextDrawPath(context, kCGPathFillStroke);

```

instead of

```
CGContextFillPath(context);
CGContextStrokePath(context);

```

The problem is that both `CGContextFillPath()` and `CGContextStrokePath(context)`
*clear* the current path, so that only the first operation succeeds, and the second
operation draws nothing. `CGContextDrawPath()` combines fill and stroke without
clearing the path in between.
Using UIBezierPath you could do this:

```
UIBezierPath *path = [[UIBezierPath alloc] init];
[path moveToPoint:CGPointMake(20, viewHeight-19.5)];
[path addLineToPoint:CGPointMake(200, viewHeight-19.5)];
[path addLineToPoint:CGPointMake(300, viewHeight-119.5)];
[path addLineToPoint:CGPointMake(120, viewHeight-119.5)];
[path addLineToPoint:CGPointMake(20, viewHeight-19.5)];

[[UIColor colorWithRed:(248/255.0) green:(222/255.0) blue:(173/255.0) alpha:1.0] setFill];
[path fill];
[[UIColor colorWithRed:(170/255.0) green:(138/255.0) blue:(99/255.0) alpha:1.0] setStroke];
[path stroke];

```