test: order by 函数测试。

This commit is contained in:
Suomm 2023-09-06 18:03:17 +08:00
parent 7f014a4a2a
commit 54600f2af9

View File

@ -17,6 +17,7 @@
package com.mybatisflex.coretest;
import com.mybatisflex.core.query.FunctionQueryColumn;
import com.mybatisflex.core.query.QueryOrderBy;
import com.mybatisflex.core.query.QueryWrapper;
import com.mybatisflex.core.query.RawQueryColumn;
import org.junit.Test;
@ -74,4 +75,15 @@ public class FunctionSqlTest {
System.out.println(sql);
}
@Test
public void test05() {
String sql = QueryWrapper.create()
.select()
.from(ACCOUNT)
.orderBy(new QueryOrderBy(rand(), ""))
.toSQL();
System.out.println(sql);
}
}