mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-02 13:03:33 +00:00
This is generating the query statement. It can be used to play with database indexes and such.
11 lines
324 B
Smalltalk
11 lines
324 B
Smalltalk
"Query for one SMS"
|
|
|
|
Eval [
|
|
1 to: 100 do: [:each |
|
|
Transcript show: 'SELECT SMS.* FROM SMS
|
|
JOIN Subscriber ON SMS.receiver_id = Subscriber.id
|
|
WHERE SMS.id >= 1 AND SMS.sent IS NULL AND Subscriber.lac > 0
|
|
ORDER BY SMS.id LIMIT 1;'; nl.
|
|
].
|
|
]
|