Search update

60548 results
5

votes
1

answer

Sequelize update does not work anymore: “Missing where attribute in the options parameter passed to update”

The official API documentation suggests using Model.update like this: var gid = ...; var uid = ...; var values = { gid: gid }; var where = { uid: uid }; myModel.update(values, where) .then(function() { // update callback }); But this gives me: 'Missing where attribute in the options parameter passed...
Domi
2

votes
1

answer

How to use update method of an observer to update different labels?

I am trying to create a scoreview with different labels and update each once the a variable state changes. So say I have this class which extends observable and it has severable methods that change the values of live, clock, food, and health. These methods also notify the observers which in my case...
T.H.
7

votes
2

answer

Sql server bulk insert/update vs MERGE in insert or update scenario

I need to find the best way to insert or update data in database using sql server and asp.net. It is a standard scenario if data exist it is updated if not it is inserted. I know that there are many topic here about that but no one has answered what i need to know. So my problem is that there is rea...
Programista
18

votes
8

answer

mysql_affected_rows() returns 0 for UPDATE statement even when an update actually happens

I am trying to get the number of rows affected in a simple mysql update query. However, when I run this code below, PHP's mysql_affected_rows() always equals 0. No matter if foo=1 already (in which case the function should correctly return 0, since no rows were changed), or if foo currently equals...
Alex Moore
2

votes
0

answer

Batch update returned unexpected row count from update [0]; actual row count: 9; expected: 1

Getting this exception while trying to delete record using hibernate. org.hibernate.jdbc.BatchedTooManyRowsAffectedException: Batch update returned unexpected row count from update [0]; actual row count: 9; expected: 1 I am using an entity which updates records in another table (I have a one to many...
3

votes
2

answer

How to update like “UPDATE table SET col1='val1'” in GreenDao

I just can't find how to only update a few columns. Table table = new Table(1); table.setName('name111'); tableDao.update(table); My understanding would be: 'UPDATE table SET name = 'name111' where id = 1'; How can do it? Thanks!
Georg Kasmin
18

votes
9

answer

Eclipse Update Failing with Message “Insufficient access privileges to apply this update”

I'm running Eclipse under a Windows 7, 64-bit installation on which I have administrator privileges. Since I first installed Eclipse many months ago, I've been able to keep it up to date with the Help > Check for Updates function—but starting a couple of weeks ago, it gave the message Insufficient...
Joe DeRose
4

votes
2

answer

How to determine what fields were update in an update trigger

UPDATE: Using Update_Columns() is not an answer to this question, as the fields may change in the order which will break the trigger (Update_Columns depends on the column order). UPATE 2: I already know that the Deleted and Inserted tables hold the data. The question is how to determine what has ch...
Greg Gum
1

votes
1

answer

Update/Synchronize App Maker datasource fields after Cloud SQL Schema update?

I have an app that includes a datasource created from an existing Cloud SQL table. A column has since been added to the Cloud SQL table (outside of App Maker). How do I get the App Maker datasource to reflect the new table schema?
Matt
1

votes
1

answer

Laravel 5.3 Update record. Only update changed record and leave the unchanged record

I want to update a profile and when I update the record, the old data that I didnot change is also updated. I want to update only those values that are changed. Unchanged values should not be updated. Route: Route::post('/profile/settings/{user}', 'Admin\[email protected]')->name(...
Afraz Ahmad
1

votes
2

answer

Jquery is not working with update panel while update panel is updated in asp.NET

Jquery is not working with update panel while update panel is updated in asp.NET Uncaught Sys.InvalidOperationException: Sys.InvalidOperationException: Could not find UpdatePanel. $(document).ready(function () { $('#dater').datepicker({ changeMonth: true, changeYear: true }); }); Pick a Date:
Ravisankar Reddy
1

votes
1

answer

Unable to update rails version even by using gem update rails command

I am trying to build ROR application for which I wrote rails fist_app command in terminal. I didn't find gemfile in folder fist_app. When goggled, found Stackoverflow answer for this problem which suggest to update rails. But when I update rails version it shows nothing to update. Here is a screen-...
Dipendra Singh
1

votes
1

answer

How to automatically update documents after index update in Azure Search

I have Azure Search service with some indexes, indexers and SQL data sources. Data source configured to use SqlIntegratedChangeTrackingPolicy, and it works fine, when any row in db updated, document updated as well. Now I want to update index and add new field. But after I do it, field contain no da...
Alexander S.
1

votes
1

answer

How to: Update related (through Regarding field) Lead on Task create/update in MS Dynamics

Scenario: A Lead is created. Then, a Task is created related (through Regarding field) to this Lead. Question: How to update a field (Boolean) on Lead object right after a Task is created/updated? The Lead update should be done basing on some conditions of the Task. I'm stuck on process of checking...
Andrii Muzychuk
1

votes
2

answer

How to accomplish full record update on Django REST serializer update() method

I have a model based serializer called RecipeSerializer(). In it I have a create method that looks like so: class RecipeSerializer(serializers.ModelSerializer): hops = HopAdditionSerializer(many=True) fermentables = FermentableAdditionSerializer(many=True) style = StyleSerializer() yeast = YeastSeri...
corycorycory
1

votes
1

answer

postgres : Update rows but ignore those which on update violate a unique constraint

I am updating a table which has 4 columns together as primary key. |Col1|Col2|Col3|Col4|val| | 1| 2| 3| 4|234| Col 1-4 make primary key I need to update Col1 in some rows. But some rows already have the value which i want to update. Thus when i run the query it gives : ERROR: duplicate key...
harsh
1

votes
2

answer

Update UI in android App without making users to update the App

I am building an app using , so the first time I upload the app to playstore, it will go with pre-defined Menu options and other stuffs. Now, suppose I want to add a menu option in the Header of the App for any festive seasons or some awesome offers, and on clicking the menu, I should display the la...
Abhinav
1

votes
2

answer

'npm update' command is not working to update dependencies in Angular2

I want to update my outdated dependencies in Angular 2. when I run npm outdated, it displayed some outdated dependencies but when I try to update them with npm update command is not working for me. My npm version is 5.3.0. 'private': true, 'dependencies': { '@angular/animations': '^4.3.4', '@angular...
Bhavani Raju
1

votes
1

answer

How to do INSERT … ON CONFLICT DO UPDATE and update TIMESTAMP automatically?

I have a table with PostgreSQL similar to this one: mytable: id col2 col3 import_ts TIMESTAMP(0) WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP So when I do an insert, I do not have to specify any value for this column and the current timestamp is automatically inserted. However, when using a query like t...
J0ANMM
1

votes
1

answer

How do I get the Update History from Windows Update in PowerShell?

Can someone give me an example of how to get the Update History from Windows Update in PowerShell? I found the API documentation here: https://msdn.microsoft.com/en-us/library/windows/desktop/bb394842(v=vs.85).aspx But, there is very little on how to call it from PowerShell.
TravisEz13
1

votes
2

answer

trigger to update particular column in table A after update on table A

I am using postgresql and I want to update a column by summing up other column in the table. EX: table name is A. When col1 or col2 or any column value in table A is updated then the value of col6 should also be updated as col6=(col1+col2+col3) for this i have written a update trigger as below. CREA...
vidyadhar
1

votes
3

answer

npm update - does it only update if the module is not installed/on latest version already

My understanding of npm update is that it will only update modules if that module is not installed or is not on the latest version. As part of our build process we run a npm update to make sure we have the latest modules, but it runs a GET on every single package whether or not it needs to be updat...
JamesE
1

votes
1

answer

I can't update my store as before (update rxjs to v.6 & angularfire to v.5)

I got a lot of problems since I upgraded my rxjs & firebase to their latest version (6 & 5). Problem #1. My store didn't work anymore cause of the breaking change, distinctUntilChanged() is now red underline and said: 'Argument of type 'MonoTypeOperatorFunction' is not attribuable on parameter of ty...
1

votes
2

answer

Update in SQL Server , how does it work with selected update?

I made this simple example of a complex update I did but as an Oracle developer I am amazed that this actually works since I am not joining the select that gets the update value, only in the WHERE EXISTS part. So my question is how does this work? How does it acually update the correct record when...
user2609850
1

votes
1

answer

Tkinter Canvas Text update: Text wont update on button press [duplicate]

This question already has an answer here: Why is Button parameter “command” executed when declared? 7 answers Creating a dice rolling program for fun/help out with D&D sessions. Trying to create a function that updates canvas text with the input variable. (Input variable will be whatever the di...
Cloudekill
0

votes
0

answer

conda update -n base -c defaults conda won't update to 4.6.x

Hopefully the title says most of it. When I use conda, it informs me that there's a newer version; however, when I go to install conda, it refuses to install anything beyond 4.5.11. This problem is occurring on my laptop (running OS X Mojave). The Ubuntu virtual machine I'm running does not have thi...
bashfuloctopus
1

votes
1

answer

How to update child document in Elastic search using update API?

I use parent-child documents in Elastic Search. I can do partial updates of the master document using the _update api. However, if I use the _update APi on a child document, the content of the document is completely replaced by the content of my script. Something goes wrong ... and I do not know...
cyclomarc
1

votes
1

answer

When releasing update to production how to proceed with backend update?

Knowing that releasing an update to Google Play could take several hours to a day, what would be the proper way to synchronize the backend? -- By synchronizing the backend I mean updating stored procedures, adding/deleting columns from tables, and among other things. -- Synchronizing the backend aft...
David
4

votes
4

answer

Does creating an offline package for Visual Studio 2012 Update 2 include updates from Update 1?

I downloaded VS2012.2.exe and ran it via: VS2012.2.exe /layout to get an offline version of the installer. Now I'm wondering whether this includes the whole set of updates ever since the RTM of Visual Studio 2012 or only those since Update 1. The description on the download page isn't exactly unambi...
0xC0000022L
2

votes
1

answer

QueryDslJpaRepository.findAll Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1

I get this exception from time to time in the production environment and have not been able to reproduce it locally. Others had this problem, but it happened when either updating or deleting. I have a listener class mapped to the Tag class which on prePersist(), makes sure that a user does not have...
Roxana Roman
1

votes
0

answer

unable to update package base64enc after update to R to 3.5.0

This is the first time I post a question here, however I have found many answers here already. Thanks for that. We upgraded R on our Linux server to version 3.5.0 recently and now I am unable to use the sendmailR package. I have reinstalled the packages like I did for other packages, but the base64...
Eva
1

votes
0

answer

Would a Django ORM update command return before the update actually happens in Postgres?

I have a couple of lines of code that have an QuerySet.update call followed by an Instance.save call. Both on the same model, where the save call overwrites the initial update (e.g. Update a column in all records to X, then save the same column in my specific instance to Y). When performing the upda...
Guy Bowden
1

votes
0

answer

jsp- Unable to update table in MySQL after clicking update button

I created three different JSP pages and my goal is to select the user I want and edit their details and update the table in db. First page looks like below: The updateuser.jsp: Username User Type Action Then, it will proceed to EDIT page which looks like below: EDIT.JSP: Current Username: New U...
Daredevil
1

votes
0

answer

cassandra-stress update error: slice restrictions are not supported on the clustering columns in UPDATE statements

I am struggling with cassandra-stress. I am looking to tune my C* cluster which is serving applications performing updates and deletes. I have found no extensive documentation for cassandra-stress that exemplify usage, so it has taken a long time just to get it working with inserts and reads. Since...
mxm
1

votes
1

answer

AWS lambda CLI 'update-function-code' does not update lambda_handler file

update-function-code AWS CLI command updates all code files except the handler function file, lambda_function.py Specifically, I made a bash script that Downloads code zip from one lambda (source) Uploads code zip to another lambda (dest) Everything works, except the main function file lambda_functi...
James Wierzba
1

votes
1

answer

MongoDB upsert - know version of the data before the update, in case of update

In MongoDB, with the write concern enabled, I can get the information if the DB executed an update or insert. Is it possible to know, in case of an update, what was the data before the update? Something like an update trigger in a traditional RDBMS - deleted and inserted. Thank you for your help.
radekg
1

votes
1

answer

If value is true update some columns, if not update anothers

i will try to explain my 'issue' i have two tables Table1 id parent_id name active 2008 10 name0 Y 200801 2008 child of name0 Y 200802 2008 child of name0 Y 201102 10434344 child of name0...
Carlos
1

votes
1

answer

MS Access Update Query Error (Can't update Memo Field, That is actual Text Field)

Good Afternoon All, I have Access connecting to the Backend of some Quality Software we have in house (SQL) and pulling 2 tables (Software company made an update and split the data into two tables), These tables are joined and dumped into a Table (tblWeakPointMaster) with a Make Table Query. Primary...
James Longfield
1

votes
1

answer

update query from select statement only update if the field is empty

I am trying to write a sql statement to update a column of a table from another tables column. But I only want to update the column if its empty. For example: UPDATE Table SET Table.col1 = other_table.col1, FROM Table INNER JOIN other_table ON Table.id = other_table.id but I want to set the Table....
1

votes
1

answer

Update view not legal even after creating INSTEAD OF UPDATE TRIGGER

My table of ADMITED_TABLE contains (NOSTUDENT, COURSECODE, SEMESTER, NOGROUPE,MARK) Columns. What I want to do: When the update is excecuted I want to increase concerned students mark by the diffrence between the oldavg and newavg. Eg: newavg - oldavg = 10. every student of that cours get MARK+10...
David Edgar