Added name query to accounts and updated query handling.
This commit is contained in:
+3
-2
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"db_name": "PostgreSQL",
|
||||
"query": "\n\t\tSELECT id, name\n\t\tFROM accounts\n\t\tORDER BY name DESC, id DESC\n\t\tLIMIT $1\n\t\tOFFSET $2\n\t\t",
|
||||
"query": "\n\t\tSELECT id, name\n\t\tFROM accounts\n\t\tWHERE ($1::text IS NULL OR name ILIKE '%' || $1 || '%')\n\t\tORDER BY name DESC, id DESC\n\t\tLIMIT $2\n\t\tOFFSET $3\n\t\t",
|
||||
"describe": {
|
||||
"columns": [
|
||||
{
|
||||
@@ -16,6 +16,7 @@
|
||||
],
|
||||
"parameters": {
|
||||
"Left": [
|
||||
"Text",
|
||||
"Int8",
|
||||
"Int8"
|
||||
]
|
||||
@@ -25,5 +26,5 @@
|
||||
false
|
||||
]
|
||||
},
|
||||
"hash": "b7bfaaed62475d82b8d551e1c9223ae42f06e1534d9587b876dbc494c9eeaebc"
|
||||
"hash": "9b5267c3bd09fb64717565c5c7e3084195d09c0a30f7e963a2497892398c6adc"
|
||||
}
|
||||
Reference in New Issue
Block a user