Tomasz Sowa
6619f3ecb5
fix: correctly use a table name when using Finder::use_table_prefix(true)
...
We cannot use aliases in the form of "tablename"."fieldname" - now it was
changed to "tablename.fieldname".
Sample how to get the id field, assuming the table name is 'mymodel'.
mymodel = finder2.
select(morm::Select::no_auto_generated_columns).
use_table_prefix(true).
raw("SELECT id AS \"mymodel.id\"").
raw("FROM mymodel").
raw("WHERE id = 25").
get();
In addition, there was an error that the table name was not correctly set
for the first object in the hierarchy - it was empty, e.g. ""."field_name"
2023-07-15 03:08:02 +02:00
..
2023-07-15 03:08:02 +02:00
2023-07-15 03:08:02 +02:00
2022-06-30 13:28:38 +02:00
2022-05-16 13:42:51 +02:00
2022-06-30 13:28:38 +02:00
2023-04-12 17:20:29 +02:00
2023-04-12 17:20:29 +02:00
2023-04-12 17:20:29 +02:00
2023-04-12 17:20:29 +02:00
2023-07-15 03:08:02 +02:00
2022-07-11 17:48:13 +02:00
2022-12-15 17:33:46 +01:00
2022-06-30 13:28:38 +02:00
2023-07-15 03:08:02 +02:00
2023-07-15 03:08:02 +02:00
2023-04-12 17:20:29 +02:00
2022-06-30 13:28:38 +02:00
2023-07-08 23:26:54 +02:00
2022-06-30 13:28:38 +02:00
2023-04-12 17:20:29 +02:00
2023-04-12 17:20:29 +02:00
2023-04-12 17:20:29 +02:00
2023-04-12 17:20:29 +02:00
2023-02-26 18:28:16 +01:00
2018-03-23 19:26:57 +00:00
2022-06-30 13:28:38 +02:00
2022-12-05 06:36:13 +01:00
2022-12-05 06:36:13 +01:00
2022-06-26 06:15:19 +02:00
2023-04-12 17:20:29 +02:00
2023-07-15 03:08:02 +02:00
2023-07-15 03:08:02 +02:00
2021-05-20 16:25:01 +02:00
2022-06-30 13:28:38 +02:00
2022-06-30 13:28:38 +02:00
2022-06-30 13:28:38 +02:00
2022-12-05 06:36:13 +01:00
2023-07-08 23:26:54 +02:00
2023-02-26 22:19:46 +01:00
2022-05-26 20:14:14 +02:00
2022-06-30 13:28:38 +02:00
2022-12-05 06:36:13 +01:00
2022-12-05 06:36:13 +01:00
2021-05-20 16:25:01 +02:00
2022-06-30 13:28:38 +02:00
2021-05-21 00:32:29 +02:00
2022-06-30 13:28:38 +02:00
2023-02-28 03:37:20 +01:00
2022-06-30 13:28:38 +02:00
2022-05-27 00:06:56 +02:00
2022-06-30 13:28:38 +02:00
2022-06-30 13:28:38 +02:00
2022-06-30 13:28:38 +02:00
2023-04-12 17:20:29 +02:00
2023-04-12 17:20:29 +02:00
2023-02-27 00:29:51 +01:00
2023-02-26 22:19:46 +01:00