catalogue
Background
Problem solving
Background
When you use the go PG framework to modify a column, an error occurs.
The column to be modified is bigint [] type. Keep trying, and multiple errors are reported as follows:
Missing “=” after array dimensions
ERROR #22P02 malformed array literal
Problem solving
Modify data directly:
update table_name set xxx= '{1,2}' where id=2;
This modification is successful. Is it right to contact the code and convert the value types to be injected?Yes, that’s it!
Code mode: set (“column =?”, Val)
Convert each value of Val of type [] Int64 into a string, and concatenate the string with commas: ` {% s}`
Expand to see: set (“column =?”, ` {1,2} ‘)
Done!
Read More:
- Array of PHP_ diff,array_ intersect,array_ merge, in_ Is there a limit on the number of arrays in array?
- [solved] error: valueerror: expected 2D array, got scalar array instead
- Two dimensional array and pointer to one dimensional array
- Android 9 (P) recovery upgrade Map of ‘@/cache/recovery/block.map’ failed problem analysis guide
- error: unclosed character literal (How to Fix)
- Variable type error: error of array occurs when TP5 controller receives the array of post
- [mybatis] error: malformed ognl expression: name! = null and name! = ‘”
- Illegal escape character in string literal
- TSLint:object access via string literals is disallowedtslint(no-string-literal)
- Crypto JS decrypts malformed UTF-8 data
- Unexpected token o in JSON at p
- Parsing error: Decorators cannot be used to decorate object literal properties
- Gson Parsing exceptions: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $
- yum install/update error: sqlite3.DatabaseError: database disk image is malformed
- To solve the problem of failed to load: data in HTML5 game running rmmv locally/ actors.json problem
- [Python] numpy library array splicing np.concatenate Detailed explanation and examples of official documents
- Zookeeper connection timeout problem, and refused to connect to solve the problem
- P – Random Teams
- SAP mm receives the purchase order and reports an error – table t169p entry znmi does not exist-
- Solve the problem of using in tensoft 2. X tf.contrib.slim No module named appears in the package: tensorflow.contrib problem