mirror of
				https://github.com/lingble/clickhouse.git
				synced 2025-11-03 20:47:58 +00:00 
			
		
		
		
	provide support for on cluster create table queries
This commit is contained in:
		
							
								
								
									
										2
									
								
								index.js
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								index.js
									
									
									
									
									
								
							@@ -492,7 +492,7 @@ class QueryCursor {
 | 
			
		||||
			// Hack for Sequelize ORM
 | 
			
		||||
			query = query.trim().trimEnd().replace(/;$/gm, "");
 | 
			
		||||
			
 | 
			
		||||
			if (query.match(/^(select|show|exists)/i)) {
 | 
			
		||||
			if (query.match(/^(select|show|exists|create)/i)) {
 | 
			
		||||
				if ( ! R_FORMAT_PARSER.test(query)) {
 | 
			
		||||
					query += ` FORMAT ${ClickHouse.getFullFormatName(me.format)}`;
 | 
			
		||||
				}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user