-
Notifications
You must be signed in to change notification settings - Fork 413
Fix for broken DbDataAdapter:Update(DataRow[]) call. (#785) #786
base: master
Are you sure you want to change the base?
Conversation
|
By way of providing some history and context, #446 is the last time we discussed |
|
Ok if we are going to do this, lets really make it sing and dance. From a UI perspective, I can see where you are going and I'm thinking we can do a bit more. What if we introduced a new ado message type ( Off the top of my head Then in the Due to backwards compatibility, we can't remove the Also due to backwards compatibility, I don't think we can update the With this in place, the When you do this, I think you should see the UI update to something that looks much more supported. Does all that make sense? What you think? |
|
p.s. Great PR so far, HUGE thanks! |
|
OK, will try my best here (I always say I'm the console guy, but I might want to improve.) |
…corporated comments from Anthony and changed UI a bit.
source/Glimpse.Ado/Tab/Sql.cs
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we have the information and for visual consistency, can we add the size column back in there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could, but the size will be the same for all values of the same parameter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Humm good point, but the same could be said for the type column.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see what you are getting at, but we have a bigger UI refresh on the way
that will solve a lot of the wider issues. For the mean time I think what
you have here is pretty good to go.
On 28 April 2014 03:13, Thomas Krüger [email protected] wrote:
In source/Glimpse.Ado/Tab/Sql.cs:
@@ -139,6 +139,18 @@ public override object GetData(ITabContext context)
parameters.Add(new[] { parameter.Name, parameter.Value, parameter.Type, parameter.Size });
}
}
else if (command.BatchParameters.Count > 0){parameters = new List<object[]>(command.BatchParameters.Count + 1);parameters.Add(new object[] { "Name", "Value", "Type", "#Row" });OK, added back the size column.
[image: image]https://cloud.githubusercontent.com/assets/6451054/2814208/3df54854-cea4-11e3-9b84-2f6fcd5a8ad2.pngBecause the Type and Size will be the same for all parameter values, the
UI could be improved further. Maybe we can strip off the constant Async
column for .net4 applications in order to gain screen estate?—
Reply to this email directly or view it on GitHubhttps://github.com//pull/786/files#r12036834
.
…all refactoring for extraction of parameters.
…eaked display of batch parameters
|
One you feel things are ready to go, the last thing is to get the cla signed. Once you do that, send it through to anthony dot vanderhoorn at the google place and we can pull in the code. Thanks for all your hard work! |
|
Ok, just wondering if you are good for us to go with pulling this in? As far as I can tell only bit left it to back out the Dup track changes. Once we have that we are good to go :D |
|
Thanks for this contribution @ThomasBombadil! |
|
Done; SQL command do no longer consider parameter values in duplicate checking. |
|
Correct. It's only the base query that is taken into account. The duplicate On Wednesday, May 7, 2014, Thomas Krüger [email protected] wrote:
|
|
Just wondering how things are going here and if you have any outstanding commit? |
|
@ThomasBombadil Just wondering how you got on with this. We are getting a release ready to go and it would be good to have this in it. |
|
Looks like @ThomasBombadil has moved on @avanderhoorn. (Thanks Thomas!) It seems like there is quite a bit of value here. Can we pull it in as is? |
|
Sorry for having such a long break, but I think this is ok to get pulled. |



Fixes the missing override for Update in the DbDataAdapter and also provides a bit of additional logging. More work could be required in the UI so that the display of the SQL statements looks good in cases of lots of batched rows (maybe a grid is then more appropriate).